In this tutorial we will generate random numbers looking at how the randomize() function works and the rnd() function.
Dice roll random code:
iRandomNumber = Math.Ceiling(Rnd() * iDiceSize)
Random number between two numbers
iRandomNumber = (Math.Ceiling(Rnd() * iRange)) + iBase