Random Numbers
CONCEPT: Random numbers are numbers that are independent or unrelated to each other
- Coin flipping can produce random bits … heads (0), tails (1)
- Rolling a die can produce random digits … 1 through 6
- Drawing cards from a shuffled deck can produce
- Random bits … red or black
- Random digits … 1 through 4 (Suit)
- Random digits … 1 through 13 (Value)
Rnd is VB6’s random number generator