In states with daily lottery games, the player must pick three lottery numbers between 0 and 9, although the same number may be used more than once. In many states there are multiple games within this system, for example, winning front or back pairs can win some (Example: 338 or 438). To select numbers based on random numbers, create a simple Javascript in an HTML file using Notepad or similar text editor. It only takes a few lines for this part. Type in the following code and save it with the name “lotto” and an HTML or HTM extension instead of the default txt type.
*****<SCRIPT LANGUAGE="JavaScript">
function lotto()
{
nbr1=Math.floor(9*Math.random())
nbr2=Math.floor(9*Math.random())
nbr3=Math.floor(9*Math.random())
alert("Your Lotto numbers for today are: " +nbr1+ " " +nbr2+" "+nbr3+ " .")
</SCRIPT>
<FORM>
<INPUT TYPE="button" VALUE="Give me my winning numbers!” onClick=”lotto()”>
</FORM>********
Locate this file on your computer and right click on it. Select “Open with” and either Firefox or Internet Explorer. You should see the button. When you click on this, you will get three random numbers for the lottery.