Rnd([number]) returns A random number (with no argument) or a number based on the given initial seed. : Rnd « Math Functions « VBA / Excel / Access / Word






Rnd([number]) returns A random number (with no argument) or a number based on the given initial seed.

 
Sub mathDemo10()
   Debug.Print Rnd(1)

 

Related examples in the same category

1.Rnd() Returns a random number between 0 and 1.
2.To prevent repetitive sequences, use the Randomize statement to initialize the random number generator with a seed value based on the system clock.