thomcc / pcg-random

PCG RNG for JavaScript
32 stars 7 forks source link

Integer function will fail to produce results within range of expected max value regardless of max used #6

Open cryguy opened 2 years ago

cryguy commented 2 years ago

Problem:

while calling random.integer() with a number, the number returned is not within the expected return range

Sidenote - am unsure of the code that follows after, more specifically the skew and the rest, i did some basic tests and the results are as expected. Any help here would be appreciated