Interactivate


Interactivate is moving! Starting March 31st, Interactivate will be found at appstate-math.github.io/interactivate. Please adjust your bookmarks.

Random Number Generators


Shodor > Interactivate > Discussions > Random Number Generators

Mentor: Can you come up with several fair ways to randomly choose a number from 1 to 3? From 1 to 5? From 1 to N? (That means your method should work for any number.)

Student 1: We can put as many numbered balls in a bag as we want, and pull one out each time we need a random number:

Student 2: Or we can buy a lottery machine:

Student 3: Or we can build a spinner:

Mentor: Indeed, all these methods will work for any number. We can also use a computer program to give us numbers in a fair way. These programs, not surprisingly, are called random number generators.

Can you come up with more ways to randomly choose a number?


a resource from CSERD, a pathway portal of NSDL NSDL CSERD
 

( ! ) Warning: Unknown: Failed to write session data (memcache). Please verify that the current setting of session.save_path is correct (tcp://127.0.0.1:21201) in Unknown on line 0
Call Stack
#TimeMemoryFunctionLocation
10.000696984{main}( )../discussion.php5:0
20.168418505504useCachedVersion( )../discussion.php5:31
30.168418505504PageRender2->useCachedVersion( )../useCachedVersion.php5:7