Skip to content
 

A convenient random number generator

Adam Sacarny noticed some dice in my office today and we came up with a good idea for a web-accessible random number generator: Put a die in a clear plastic box attached to something that can shake it. Train a video camera on the box, and pipe it to some digit-recognition software. Then whenever someone clicks on a button on the website, it shakes the box and read off the number. (We can use one of those 20-sided dice with each digit written twice, so we get a random number between 0 and 9.) Pretty convienent, huh?

I’d like to set this up but I assume somebody’s done it already. In any case it’s not nearly as cool as that program that figures out what you’re typing by listening to the sounds of the keystrokes.

3 Comments

  1. Gabriel M. says:

    Lava lamps, sunspots, atomic decay… it's all been down before.

  2. Gregor says:

    Dirk Eddelbuettel has package random on CRAN that take true random numbers from random.org.

  3. Bill Harris says:

    While it's not strictly for generating random numbers, Diceware might be of interest to those of your readers interested in random passphrases, and it does use dice. See http://diceware.com/.