Picks numbers for Las Vegas-style Keno. Answer HOW MANY NUMBERS DO YOU WANT? with 4 to 8 and it prints one set of random numbers between 1 and 80; then press C (and ENTER) to COPY the screen to the printer, S to stop, or any other key to pick again. 0 stops the program. A REM line suggests changing the lines for lottery choices.
Compiled by Steve Sawchuk Jr. (the REM spells it Sawchuck) of the TSUG of L.V., 4/19/88, from The Hacker, July 1988. As printed, a set could repeat a number; the download adds a check (lines 400-410) so every number in a set differs.
Published in The Plotter October 1989 (Keno Pick).
Source Code
5 REM "kenopick"
6 REM COMPILED BY STEVE SAWCHUCK JR. TSUG of L.V. 4/19/88
8 REM from THE HACKER July, 1988
10 REM change the appropriate lines for LOTTERY choices.
30 CLS : CLEAR : PRINT
40 PRINT TAB 4;"TIMEX PICKS NUMBERS FOR"
50 PRINT
60 PRINT : PRINT TAB 4;" *VEGAS KENO* "
80 PRINT : PRINT TAB 6;" 1 SET OF NEMBERS"
100 PRINT : PRINT TAB 8;" BETWEEN 1 & 80"
140 PRINT : PRINT : INPUT "HOW MANY NUMBERS DO YOU WANT? (4,5,6,7, or 8)";N
160 PRINT : IF N=0 THEN STOP : IF N<4 OR N>8 THEN GO TO 310
180 IF N=4 THEN GO TO 230
190 IF N=5 THEN GO TO 240
200 IF N=6 THEN GO TO 250
210 IF N=7 THEN GO TO 260
220 IF N=8 THEN GO TO 270
230 FOR I=1 TO 5: RANDOMIZE : DIM D(80): FOR X=1 TO 4: GO SUB 400: NEXT X: PRINT : PRINT : GO TO 275
240 FOR I=1 TO 5: RANDOMIZE : DIM D(80): FOR X=1 TO 5: GO SUB 400: NEXT X: PRINT : PRINT : GO TO 275
250 FOR I=1 TO 5: RANDOMIZE : DIM D(80): FOR X=1 TO 6: GO SUB 400: NEXT X: PRINT : PRINT : GO TO 275
260 FOR I=1 TO 5: RANDOMIZE : DIM D(80): FOR X=1 TO 7: GO SUB 400: NEXT X: PRINT : PRINT : GO TO 275
270 FOR I=1 TO 5: RANDOMIZE : DIM D(80): FOR X=1 TO 8: GO SUB 400: NEXT X: PRINT : PRINT : GO TO 275
275 PRINT TAB 1;"PRESS C TO COPY OR S TO STOP OR ANY OTHER KEYS TO CONTINUE"
276 INPUT Y$
278 IF Y$="C" OR Y$="c" THEN COPY
280 IF Y$="S" OR Y$="s" THEN STOP
320 GO TO 140: PRINT : PRINT : GO TO 140
400 LET R=INT (RND*80)+1: IF D(R) THEN GO TO 400
410 LET D(R)=1: PRINT R;" ";: RETURNNote: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.



