The current implementation of percent happens to be copied from a certain answer on StackOverflow.
function percent(seed) {
var x = sin(seed) * 0xFFFFFF
return x - floor(x)
}
While this algorithm is quite fast and works well for small projects, it'd be great to see this function replaced with something more credible (i.e. some PRNG with its own Wikipedia article).
The current implementation of
percenthappens to be copied from a certain answer on StackOverflow.While this algorithm is quite fast and works well for small projects, it'd be great to see this function replaced with something more credible (i.e. some PRNG with its own Wikipedia article).