Created
June 11, 2016 06:46
-
-
Save iCodeForBananas/141ca5f3514601a027b1a928f59e2a6c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Math.random = (function(rand) { | |
var salt = 0 | |
document.addEventListener('mousemove', function(event) { | |
salt = event.pageX * event.pageY * window.innerWidth * window.innerHeight | |
}) | |
return function() { | |
return (rand() + (1 / (1 + salt))) % 1; | |
} | |
})(Math.random) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment