(DM42) Lottery number generator programming
|
02-12-2019, 12:57 AM
Post: #3
|
|||
|
|||
RE: (DM42) Lottery number generator programming
(02-11-2019 07:35 PM)Dieter Wrote: Now, what about adding a sorted output ?-) The following program uses the bits of an integer to simulate a set. Using the BIT? function allows to detect a duplicate value. It then goes back to label 00 and tries again. Code: 00 { 54-Byte Prgm } The limitation however is that this works only up to 35 horses. Example: 18 ENTER 4 XEQ "RANDOM" ST X=6.017 R/S ST X=10.017 R/S ST X=15.017 R/S ST X=16.017 R/S 18.017 Make sure to have the printer off (POFF) and flag 21 (Printer Enable) set, i.e. SF 21. Otherwise the VIEW command in line 23 will not stop. Have fun with your DM42. Thomas |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(DM42) Lottery number generator programming - psw - 02-10-2019, 09:54 AM
RE: (DM42) Lottery number generator programming - Dieter - 02-11-2019, 07:35 PM
RE: (DM42) Lottery number generator programming - Thomas Klemm - 02-12-2019 12:57 AM
RE: (DM42) Lottery number generator programming - psw - 02-12-2019, 05:56 AM
|
User(s) browsing this thread: 3 Guest(s)