Randomization (repeatability)

Etherlord
Posts: 1
Joined: Sat Jun 16, 2012 1:25 pm

Randomization (repeatability)

Post by Etherlord »

Hi guys!

To make long story short, if I make a simple app, where I position a dice at X, Y, Z, and apply some force to it vx, vy, vz, will the dice end in same place everytime I launch the app? Or is there any random function that can make the dice end in different place sometimes?

Thanks!
Karrok
Posts: 65
Joined: Fri May 13, 2011 1:11 pm

Re: Randomization (repeatability)

Post by Karrok »

Yes, it is deterministic (ie, given the same situation and input you should get the same result)

To randomize it, just randomize the input, in this case the forces applied to the dice