List Commands Library for 50g
|
01-27-2019, 06:52 PM
(This post was last modified: 01-29-2019 06:17 PM by John Keith.)
Post: #397
|
|||
|
|||
RE: List Commands Library for 50g
Here is my version. I have not compared it to David's but it allows a and b to be large integers without excessive memory consumption. The redundant nature of the program is to minimize execution time while returning exact or approximate integers depending on mode.
Edited to fix bug that would cause negative values to be off by 1. Code:
To use the program, level 3 has the number of terms, level 2 has b, and level 1 has a. So if you enter 100 1000 1000000 and execute the program you will get a list of 100 random integers between 1000 and 1000000. The program could be easily shortened and simplified if one wanted to use it only in one mode. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 6 Guest(s)