Post Reply 
Exact Discrete pseudo-Random Sampling
04-09-2020, 12:54 AM
Post: #7
RE: Exact Discrete pseudo-Random Sampling
(04-08-2020 05:42 AM)Paul Dale Wrote:  Don't reinvent the wheel. Look up Lemire's delightful: Fast Random Integer Generation in an Interval.

I very much doubt that there is a more efficient method.

Pauli

How well would algorithm 5 (using full-width multiply, bit shifts and masking) work on a HP 50g though? I can see that algorithm 4 (the Java algorithm) would be useful.

— Ian Abbott
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Exact Discrete pseudo-Random Sampling - ijabbott - 04-09-2020 12:54 AM



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