Post Reply 
A Random Question
06-11-2017, 05:19 AM
Post: #20
RE: A Random Question
(06-11-2017 01:39 AM)DavidM Wrote:  Does this have a long enough cycle for a practical use on calculator-based apps?

I think that pretty much any RNG has a long enough cycle. How many random numbers is a calculator likely to need? A few hundred? Thousand? Million? Most modern RNG have periods many orders of magnitude beyond what's required.

It is more important to provide a good RNG that generates uniform numbers that pass the various statistical test suites. This doesn't mean the results are random of course, but it is indicative that they aren't needlessly biassed.


Quote:I have no data to back this up, but I'd be willing to bet that the "RAND n * CEIL" approach is used far more frequently than any other in calculator programs.

I certainly wouldn't be accepting this bet Smile


Quote:Has this actually caused problems for anyone? I suspect we'll never really know.

It is impossible to know. Quite a few of the early RNGs were likely to have been poorly distributed and non-uniform. I'm guilty of this when I've had to reduce the step count in programs.


I've gone back and looked at the 34S RNG again. It looks fine in integer mode and double precision real mode. I suspect it will show some bias in single precision real mode.


Pauli
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
A Random Question - DavidM - 06-09-2017, 03:15 PM
RE: A Random Question - pier4r - 06-09-2017, 03:46 PM
RE: A Random Question - Paul Dale - 06-09-2017, 11:37 PM
RE: A Random Question - Joe Horn - 06-10-2017, 12:03 AM
RE: A Random Question - DavidM - 06-10-2017, 01:45 AM
RE: A Random Question - pier4r - 06-10-2017, 08:55 AM
RE: A Random Question - DavidM - 06-10-2017, 05:10 PM
RE: A Random Question - Paul Dale - 06-10-2017, 05:18 AM
RE: A Random Question - John Keith - 06-10-2017, 12:57 PM
RE: A Random Question - pier4r - 06-10-2017, 01:20 PM
RE: A Random Question - DavidM - 06-10-2017, 03:51 PM
RE: A Random Question - Paul Dale - 06-10-2017, 11:49 PM
RE: A Random Question - DavidM - 06-11-2017, 01:11 AM
RE: A Random Question - Paul Dale - 06-11-2017, 05:04 AM
RE: A Random Question - lrdheat - 06-10-2017, 02:28 PM
RE: A Random Question - Paul Dale - 06-11-2017, 12:00 AM
RE: A Random Question - ttw - 06-11-2017, 12:21 AM
RE: A Random Question - DavidM - 06-11-2017, 01:39 AM
RE: A Random Question - Paul Dale - 06-11-2017 05:19 AM
RE: A Random Question - ttw - 06-13-2017, 06:13 AM
RE: A Random Question - Paul Dale - 06-11-2017, 12:38 AM



User(s) browsing this thread: 1 Guest(s)