uupaa.random.js
0.3.3 • Public • Published Random.js
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>
importScripts("<module-dir>lib/WebModule.js");
importScripts("<module-dir>lib/Random.js");
...
require("<module-dir>lib/WebModule.js");
require("<module-dir>lib/Random.js");
...
Package Sidebar
Install
Weekly Downloads