That's good to hear.
If you later want it to be uniformly random here's a second idea. Basically for n objects there is n+1 gaps. My thought is if we generate a random number for each gap and then sum them up, we can then find a factor to convert the sum to freespace and use the array values and the factor to get gap widths.
Sum=0
Freespace = 100-10*n
Array size (n+1,1,1)
Array for each X
--- set current X to random(1)
--- add curx to sum
Factor = freespace/sum
X=0
Repeat n times
--- add array.at(loopindex)*factor to X
--- create Sprite at (X,0)
--- add 10 to X