Sha256: e9184dd4dba8fa5c12f2262a3537fc0d855d3123b7435113fc17c4c6d79ae23d
Contents?: true
Size: 695 Bytes
Versions: 1
Compression:
Stored size: 695 Bytes
Contents
define("dojox/math/random/Simple", ["dojo"], function(dojo) { return dojo.declare("dojox.math.random.Simple", null, { // summary: // Super simple implementation of a random number generator, // which relies on Math.random(). destroy: function(){ // summary: // Prepares the object for GC. (empty in this case) }, nextBytes: function(/* Array */ byteArray){ // summary: // Fills in an array of bytes with random numbers // byteArray: Array // array to be filled in with random numbers, only existing // elements will be filled. for(var i = 0, l = byteArray.length; i < l; ++i){ byteArray[i] = Math.floor(256 * Math.random()); } } }); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dojox-rails-0.11.0 | vendor/assets/javascripts/math/random/Simple.js.uncompressed.js |