All Questions
2 questions
2
votes
1
answer
190
views
What PRNG function is this?
This is a 16-bit PRNG function, transcribed from assembly to C for easier reading:
...
1
vote
2
answers
106
views
Maintain Uniform Distribution across Subranges
Note: this is a continuation of Generate Random Number outside Bounds.
I have a function (thanks to the previous question) with the following prototype which returns an integer in the range $[0,b]$, $...