subsection contents

Lotto Numbers Selector

Largest number:         How many to draw:

Numbers drawn (in order drawn):



This JavaScript application uses a random number generator to pick numbers for lotto or bingo.

The current version allows the user to input the highest number that can be drawn, as well as the the number of selections to be made. At the moment the input values must be in the range from 1 to 120. Obviously, the number of selections to be made must be less than or equal to the highest number that can be selected.

Just enter the appropriate values in the input fields, and then click on the 'Draw the numbers' button. The selected numbers will be displayed in the order they were 'drawn'.

Tested with Safari, Firefox and Opera on Mac OS X. According to Browsershots, the page loads and appears to work with Internet Explorer (versions 5.5 to 8.0), Firefox, Opera, Chrome and Safari on Windows.

Update:
This page now accepts parameters passed in via the URL. Two URL formats are supported:
1. Lotto.html?x=numToDraw&n=maxNum - e.g. Lotto.html?x=6&n=40
2. Lotto.html?numToDraw/maxNum - e.g. Lotto.html?10/50


Last updated: April 1, 2009