--- title: "Lytle Software Lottery" id: 77447 type: "computer_media" slug: "lytle-software-lottery" url: "http://localhost/computer_media/lytle-software-lottery/" markdown_url: "http://localhost/computer_media/lytle-software-lottery.md" published_at: "2026-11-15T18:38:30+00:00" modified_at: "2026-11-15T18:38:30+00:00" author: "David Anderson" featured_image: url: "http://localhost/wp-content/uploads/2026/11/lytle-software-lottery-1.png" excerpt: "Lotto, Pick Four, Daily Number and 6-49 picks, modified for the Larken disk system and a wide printer." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - name: "LKDOS" slug: "lkdos" taxonomy: "post_tag" url: "http://localhost/tag/lkdos/" - name: "TS 2068" slug: "ts2068" taxonomy: "post_tag" url: "http://localhost/tag/ts2068/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "Carlos Lytle" slug: "carlos-lytle" taxonomy: "indiv" url: "http://localhost/indiv/carlos-lytle/" - name: "Renato Zannese" slug: "renato-zannese" taxonomy: "indiv" url: "http://localhost/indiv/renato-zannese/" genre: - name: "Gambling" slug: "gambling" taxonomy: "genre" url: "http://localhost/type/gambling/" media_type: "Program" programmers: - name: "Renato Zannese" slug: "renato-zannese" taxonomy: "indiv" url: "http://localhost/indiv/renato-zannese/" - name: "Carlos Lytle" slug: "carlos-lytle" taxonomy: "indiv" url: "http://localhost/indiv/carlos-lytle/" download_url: "https://archive.org/download/timex-sinclair-software-archive/Lytle%20Software%20Lottery%20%281988%29%28Lytle%2C%20Carlos%20-%20Zannese%2C%20Renato%29%28TS2068%29%28Program%29.zip" tsrun_member: "Lytle Software Lottery (1988)(Lytle, Carlos - Zannese, Renato)(TS2068)(Program)/Lytle Software Lottery (1988)(Lytle, Carlos - Zannese, Renato)(TS2068)(Program).tap" mediadate: "1988" images: - url: "http://localhost/wp-content/uploads/2026/11/lytle-software-lottery-1.png" - url: "http://localhost/wp-content/uploads/2026/11/lytle-software-lottery-2.png" - url: "http://localhost/wp-content/uploads/2026/11/lytle-software-lottery-3.png" article_media: - id: 23274 title: "Simple Lottery Numbers" type: "article" url: "http://localhost/article/simple-lottery-numbers/" media_type_tags: "Gambling" license: false --- # Lytle Software Lottery Picks lottery numbers: Lotto (ten selections of six numbers from 1-39), Pick Four, The Daily Number (three digits) and 6-49 (six numbers from 1-49), with the Lotto and 6-49 selections also sent to the printer. C makes a copy and R a new set. Only the number just drawn is checked, so a selection can repeat a number. The original program is Lytle Software’s, dated March 20, 1985 on its title screen; it was printed as “2068 Lotto” by Carlos Lytle in SyncWare News. Renato Zannese modified it for the Larken disk system and an 80-column printer in October 1988; for a TS2040 the article says to change LPRINT CHR$ 1 to COPY. Line 15 (PRINT #4: OPEN #3,”LP”) opens the Larken printer channel and line 9995 saves to a Larken disk. On a TS2068 without the Larken system RUN stops at line 15 with “Invalid stream”: start it with GO TO 20 instead (the printout then goes to the TS2040). Published in Sinc-Link November-December 1988 ([Simple Lottery Numbers](https://timexsinclair.com/article/simple-lottery-numbers/)). ## Source Code ``` 5 REM Modified for the Larken Disk System By R. Zannese Oct.,23, 1988 10 BORDER 5: INK 9: PAPER 0: CLS 15 PRINT #4: OPEN #3,"LP" 20 PRINT AT 1,8;" Lytle Software ";TAB 8;" LOTTERY ";TAB 8;" Origional ";TAB 8;"MAR. 20,1985 ";TAB 8;" Programs " 30 PRINT AT 8,6;"1. LOTTO";AT 10,6;"2. PICK FOUR";AT 12,6;"3. THE DAILY NUMBER" 35 PRINT AT 14,6;"4. 6-49" 40 PRINT AT 21,7; BRIGHT 0;"Enter your choice" 50 PAUSE 0: LET j=VAL INKEY$: IF j<1 OR j>4 THEN GO TO 50 60 CLS : BORDER j: GO TO 1000*j 1000 PRINT INK 7; PAPER 0;AT 0,10;" L O T T O " 1010 PRINT ': RESTORE 1020 LET b1=0 1030 FOR c=1 TO 5: READ a$ 1040 DATA "A","B","C","D","E","F","G","H","I","J" 1050 PRINT TAB 10;"Selection No. ";a$ 1060 FOR a=1 TO 6 1070 LET b=INT (RND*39)+1 1080 IF b=b1 THEN GO TO 1070 1100 IF b<10 THEN PRINT " "; 1110 PRINT " ";b; 1115 LPRINT " ";b; 1120 LET b1=b: NEXT a 1130 PRINT TAB 3;"__________________________" 1135 LPRINT TAB 3;"__________________________" 1140 PRINT 1145 LPRINT 1150 NEXT c 1160 INPUT "C=copy R=reset ENTER=next "; LINE d$: IF d$="c" THEN LPRINT CHR$ 1 1170 IF d$="r" THEN CLS : GO TO 1000 1180 IF c=6 THEN CLS : PRINT '': FOR c=6 TO 10: READ a$: GO TO 1050 1190 PRINT TAB 6; INK 2; PAPER 7; FLASH 1;" G O O D L U C K " 1200 PAUSE 200: GO TO 10 2000 PRINT AT 6,7;" P I C K F O U R " 2010 FOR c=1 TO 4 2020 LET p4=INT (RND*10) 2030 PRINT AT 12,8+(c*3);p4 2040 NEXT c 2050 PRINT AT 21,7;" Push "; FLASH 1;p4; FLASH 0;" for MENU " 2060 IF INKEY$<>STR$ p4 THEN GO TO 2060 2070 GO TO 10 3000 PRINT AT 6,6;" T H E N U M B E R " 3010 FOR c=1 TO 3 3020 LET p3=INT (RND*10) 3030 PRINT AT 12,10+(c*3);p3 3040 NEXT c 3050 PRINT AT 21,7; BRIGHT 1;" Push "; FLASH 1;p3; FLASH 0;" for MENU " 3060 IF INKEY$<>STR$ p3 THEN GO TO 3060 3070 GO TO 10 4000 BORDER 1: PRINT INK 7; PAPER 0;AT 0,10;" 6 - 4 9 " 4010 PRINT ': RESTORE 4020 LET b1=0 4030 FOR c=1 TO 5: READ a$ 4040 DATA "A","B","C","D","E","F","G","H","I","J" 4050 PRINT TAB 10;"Selection No. ";a$ 4055 LPRINT TAB 10;"Selection No.";a$ 4060 FOR a=1 TO 6 4070 LET b=INT (RND*49)+1 4080 IF b=b1 THEN GO TO 4070 4100 IF b<10 THEN PRINT " "; 4105 IF b<10 THEN LPRINT " "; 4110 PRINT " ";b; 4115 LPRINT " ";b; 4120 LET b1=b: NEXT a 4130 PRINT TAB 3;"__________________________" 4135 LPRINT TAB 3;"__________________________" 4140 PRINT 4145 LPRINT 4150 NEXT c 4160 INPUT "C=copy R=reset ENTER=next "; LINE d$: IF d$="c" THEN LPRINT CHR$ 1 4170 IF d$="r" THEN CLS : GO TO 4000 4180 IF c=6 THEN CLS : PRINT '': FOR c=6 TO 10: READ a$: GO TO 4050 4190 PRINT TAB 6; INK 2; PAPER 7; FLASH 1;" G O O D L U C K " 4200 PAUSE 200: GO TO 10 9980 STOP 9985 REM larken save 9995 PRINT #4: SAVE "Lotto.B1" LINE 10 ```