Hello, I am trying to position 1000 little cubes. Each in a random 3D position (using RND command) but I find that these little cubes are positioned with a certain order compared to the other little cubes 3D position.
If I use 100 or 200 little cubes so I find a good random level in their 3D positions but If I start to use 1000 or over little cubes I notice that the little cubes positions are increasingly ordered.
More little cubes more order and less random...
Here my code:
pos_X# = start_position_X# + rnd(zone_X#)
pos_Y# = start_position_Y# + rnd(zone_Y#)
pos_Z# = start_position_Z# + rnd(zone_Z#)
You can see that I trying to randomize from the float variables zone_X#, zone_Y# and zone_Z#.
I know that RND command return an Integer number and maybe this is very wrong cause the pos_X#, pos_Y# and pos_Z# variables are float too.
But the problem remain If I am using this code too:
pos_X# = start_position_X# + rnd(20)
pos_Y# = start_position_Y# + rnd(15)
pos_Z# = start_position_Z# + rnd(26)
In this example I am using the RND command using some integer numbers but the problem remains.
So at this point, can I set a random x,y,z position and be sure the randomize job is working good??