Created
December 6, 2017 12:27
-
-
Save ekelokorpi/a56ebc214c4ad19e3dcfee0a63216592 to your computer and use it in GitHub Desktop.
This file contains 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
game.module( | |
'game.utils' | |
) | |
.body(function() { | |
var seed = 0; | |
game.random = function () { | |
var x = Math.sin(.8765111159592828 + seed++) * 10000; | |
return x - Math.floor(x); | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment