Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_29.ADF » P/LOTT
P/LOTT
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_29.ADF |
Filename: | P/LOTT |
Read OK: | ✔ |
File size: | 016C bytes |
Load address: | FFFF2000 |
Exec address: | FFFF2000 |
Duplicates
There are 2 duplicate copies of this file in the archive:
- AEW website » eug » eug_3_5_discs_Eug-29_A-EUG29.adf » U/LOTT
- AEW website » eug » eug_5_25_discs_Eug-29_D-EUG29.dsd » U.LOTT
- Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_29.ADF » P/LOTT
File contents
10REM >LOTT 20REM Lottery number generator based on prog. by Alva Parrot modified by Mick Comley 30MODE 6 40@%=&506 50DIMa%(6) 60PRINT'"Hit 'Q' to Quit or any other key." 70REPEAT 80A%=RND(-TIME) 90A%=1 100REPEAT 110n%=RND(49) 120B%=1:C%=FALSE 130REPEAT 140IF n%=a%(B%) C%=TRUE 150B%=B%+1 160UNTIL C% OR B%>A% 170IF NOT C% a%(A%)=n%:A%=A%+1 180UNTIL A%>6 190FOR A%=1 TO 6 200PRINTa%(A%); 210NEXT 220PRINT' 230UNTIL GET$="Q" 240END
� >LOTT T� Lottery number generator based on prog. by Alva Parrot modified by Mick Comley � 6 (@%=&506 2 �a%(6) <)�'"Hit 'Q' to Quit or any other key." F� PA%=�(-�) ZA%=1 d� nn%=�(49) x B%=1:C%=� �� �� n%=a%(B%) C%=� �B%=B%+1 �� C% � B%>A% �� � C% a%(A%)=n%:A%=A%+1 � � A%>6 �� A%=1 � 6 ��a%(A%); �� ��' �� �="Q" �� �
00000000 0d 00 0a 0b f4 20 3e 4c 4f 54 54 0d 00 14 54 f4 |..... >LOTT...T.| 00000010 20 4c 6f 74 74 65 72 79 20 6e 75 6d 62 65 72 20 | Lottery number | 00000020 67 65 6e 65 72 61 74 6f 72 20 62 61 73 65 64 20 |generator based | 00000030 6f 6e 20 70 72 6f 67 2e 20 62 79 20 41 6c 76 61 |on prog. by Alva| 00000040 20 50 61 72 72 6f 74 20 6d 6f 64 69 66 69 65 64 | Parrot modified| 00000050 20 62 79 20 4d 69 63 6b 20 43 6f 6d 6c 65 79 0d | by Mick Comley.| 00000060 00 1e 07 eb 20 36 0d 00 28 0b 40 25 3d 26 35 30 |.... 6..(.@%=&50| 00000070 36 0d 00 32 0a de 61 25 28 36 29 0d 00 3c 29 f1 |6..2..a%(6)..<).| 00000080 27 22 48 69 74 20 27 51 27 20 74 6f 20 51 75 69 |'"Hit 'Q' to Qui| 00000090 74 20 6f 72 20 61 6e 79 20 6f 74 68 65 72 20 6b |t or any other k| 000000a0 65 79 2e 22 0d 00 46 05 f5 0d 00 50 0c 41 25 3d |ey."..F....P.A%=| 000000b0 b3 28 2d 91 29 0d 00 5a 08 41 25 3d 31 0d 00 64 |.(-.)..Z.A%=1..d| 000000c0 05 f5 0d 00 6e 0c 6e 25 3d b3 28 34 39 29 0d 00 |....n.n%=.(49)..| 000000d0 78 0d 42 25 3d 31 3a 43 25 3d a3 0d 00 82 05 f5 |x.B%=1:C%=......| 000000e0 0d 00 8c 14 e7 20 6e 25 3d 61 25 28 42 25 29 20 |..... n%=a%(B%) | 000000f0 43 25 3d b9 0d 00 96 0b 42 25 3d 42 25 2b 31 0d |C%=.....B%=B%+1.| 00000100 00 a0 10 fd 20 43 25 20 84 20 42 25 3e 41 25 0d |.... C% . B%>A%.| 00000110 00 aa 1c e7 20 ac 20 43 25 20 61 25 28 41 25 29 |.... . C% a%(A%)| 00000120 3d 6e 25 3a 41 25 3d 41 25 2b 31 0d 00 b4 0a fd |=n%:A%=A%+1.....| 00000130 20 41 25 3e 36 0d 00 be 0e e3 20 41 25 3d 31 20 | A%>6..... A%=1 | 00000140 b8 20 36 0d 00 c8 0c f1 61 25 28 41 25 29 3b 0d |. 6.....a%(A%);.| 00000150 00 d2 05 ed 0d 00 dc 06 f1 27 0d 00 e6 0b fd 20 |.........'..... | 00000160 be 3d 22 51 22 0d 00 f0 05 e0 0d ff |.="Q".......| 0000016c