Powerball Generator!
|
09-13-2024, 07:18 AM
(This post was last modified: 09-13-2024 10:25 AM by Thomas Klemm.)
Post: #5
|
|||
|
|||
RE: Powerball Generator!
A bit shorter:
Code: 00 { 95-Byte Prgm } Changes The subroutine at LBL 00 generates a random number from 1 to X. This makes the checks at the boundaries unnecessary. I also use the register 00 instead of the global variable "CNT". But that's more a matter of taste. There's no obvious reason to store a result in the register 10 since it's never used. So I removed it. I also removed CLD since I don't think it's needed. If the increment of a loop control number is 1, it can be omitted as it is the default. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)