Home
VBA / Excel / Access / Word
Access
Application
Data Type
Data Type Functions
Date Functions
Excel
File Path
Forms
Language Basics
Math Functions
Outlook
PowerPoint
String Functions
Windows API
Word
XML
Rnd « Math Functions « VBA / Excel / Access / Word
VBA / Excel / Access / Word
Math Functions
Rnd
1.
Rnd([number]) returns A random number (with no argument) or a number based on the given initial seed.
2.
Rnd() Returns a random number between 0 and 1.
3.
To prevent repetitive sequences, use the Randomize statement to initialize the random number generator with a seed value based on the system clock.