The scripts on this page simulate the UK National Lottery draw, in which six balls are drawn from a total of 49 balls. As the balls are not replaced when they are drawn, the key thing is that no number appears more than once. The six balls are drawn, and then sorted into order - for an explanation of how the code works, see the Flow page in the Programming section.

NB. You will only see the versions that your browswer supports - i.e. VBScript and JavaScript for Internet Explorer and just JavaScript for most other browsers, provided that scripting is allowed.