Click or drag to resize
StdRandom Methods

The StdRandom type exposes the following members.

Methods
  NameDescription
Public methodStatic memberBernoulli
Returns a random boolean from a Bernoulli distribution with success probability 1/2.
Public methodStatic memberBernoulli(Double)
Returns a random boolean from a Bernoulli distribution with success probability P.
Public methodStatic memberCauchy
Returns a random real number from the Cauchy distribution.
Public methodStatic memberDiscrete(Double)
Returns a random integer from the specified discrete distribution.
Public methodStatic memberDiscrete(Int32)
Returns a random integer from the specified discrete distribution.
Public methodStatic memberExp
Returns a random real number from an exponential distribution with rate lambda (λ).
Public methodStatic memberGaussian
Returns a random real number from a standard Gaussian distribution.
Public methodStatic memberGaussian(Double, Double)
Returns a random real number from a Gaussian distribution with mean mu (μ) and standard deviation sigma (σ).
Public methodStatic memberGeometric
Returns a random integer from a geometric distribution with success probability P.
Public methodStatic memberMainTest
Unit test the StdRandom methods
Public methodStatic memberPareto
Returns a random real number from the standard Pareto distribution.
Public methodStatic memberPareto(Double)
Returns a random real number from a Pareto distribution with shape parameter alpha (α).
Public methodStatic memberPoisson
Returns a random integer from a Poisson distribution with mean lambda (λ).
Public methodStatic memberRandom
Returns a random real number uniformly in [0, 1).
Public methodStatic memberShuffle(Double)
Rearranges the elements of the specified array in uniformly random order.
Public methodStatic memberShuffle(Int32)
Rearranges the elements of the specified array in uniformly random order.
Public methodStatic memberShuffle(Object)
Rearranges the elements of the specified array in uniformly random order.
Public methodStatic memberShuffle(Double, Int32, Int32)
Rearranges the elements of the specified subarray in uniformly random order.
Public methodStatic memberShuffle(Int32, Int32, Int32)
Rearranges the elements of the specified subarray in uniformly random order.
Public methodStatic memberShuffle(Object, Int32, Int32)
Rearranges the elements of the specified subarray in uniformly random order.
Public methodStatic memberUniform
Returns a random real number uniformly in [0, 1).
Public methodStatic memberUniform(Int32)
Returns a random integer uniformly in [0, n).
Public methodStatic memberUniform(Double, Double)
Returns a random real number uniformly in [a, b).
Public methodStatic memberUniform(Int32, Int32)
Returns a random integer uniformly in [a, b).
Top
See Also