Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ekelokorpi
Created December 6, 2017 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekelokorpi/a56ebc214c4ad19e3dcfee0a63216592 to your computer and use it in GitHub Desktop.
Save ekelokorpi/a56ebc214c4ad19e3dcfee0a63216592 to your computer and use it in GitHub Desktop.
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