Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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