dojox/math/random/Simple.js

  • Provides:

    • dojox.math.random.Simple
  • dojox.math.random.Simple

    • type
      Function
    • summary
      Super simple implementation of a random number generator,
      which relies on Math.random().
  • dojox.math.random.Simple.destroy

    • type
      Function
    • source: [view]
        // summary:
        // Prepares the object for GC. (empty in this case)
    • summary
      Prepares the object for GC. (empty in this case)
  • dojox.math.random.Simple.nextBytes

    • type
      Function
    • parameters:
      • byteArray: (typeof Array)
        array to be filled in with random numbers, only existing
        elements will be filled.
    • source: [view]
        for(var i = 0, l = byteArray.length; i < l; ++i){
         byteArray[i] = Math.floor(256 * Math.random());
        }
    • summary
      Fills in an array of bytes with random numbers
  • dojox.math.random

    • type
      Object
    • summary
  • dojox.math

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary