```js randoms = 0; randomValues = [0,0.5,0.9999999999999999,0.5]; oldRandom = Math.random; Math.rand

randoms = 0;
randomValues = [0,0.5,0.9999999999999999,0.5];
oldRandom = Math.random;
Math.random = function() {
    value = randomValues[randoms];
    randoms = (randoms + 1) % randomValues.length;
    return value;
}
should work
Was this page helpful?