dojox/math/random/Simple (version 1.10)

Summary

Super simple implementation of a random number generator, which relies on Math.random().

Method Summary

  • destroy() Prepares the object for GC. (empty in this case)
  • nextBytes(byteArray) Fills in an array of bytes with random numbers

Methods

destroy()

Prepares the object for GC. (empty in this case)

nextBytes(byteArray)

Fills in an array of bytes with random numbers

Parameter Type Description
byteArray Array

array to be filled in with random numbers, only existing elements will be filled.

Error in the documentation? Can’t find what you are looking for? Let us know!