Skip to content

Repository files navigation

Random.js Build Status

npm

Browser and NW.js(node-webkit)

<script src="<module-dir>/lib/WebModule.js"></script>
<script src="<module-dir>/lib/Random.js"></script>
<script>
var random = new Random();

random.next() // -> 0x000000000 - 0xffffffff
random.next() // -> 0x000000000 - 0xffffffff
random.next() // -> 0x000000000 - 0xffffffff

</script>

WebWorkers

importScripts("<module-dir>lib/WebModule.js");
importScripts("<module-dir>lib/Random.js");

...

Node.js

require("<module-dir>lib/WebModule.js");
require("<module-dir>lib/Random.js");

...

About

Random function (Xorshift implement).

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages