What i am trying to do is randomly make a layout on a side scrolling game.
I am going to spawn sprites like trees, hills and bushes onto a layout but to make it look different to the last layout i am going to randomly spawn these sprites in boxes in areas on the layout.
I dont know how to write code so can anybody confirm if i have this code right?
Box: Spawn another object: Tree Image Point: Random(10)
Will the Random(10) pick 1 of 10 image points in the box at random?