uniformDistribution

Provides an infinite sequence of random numbers uniformly distributed between a and b. The boundaries parameter controls the shape of the interval (open vs. closed on either side). Valid values for boundaries are "[]", "$(LPAREN)]", "[$(RPAREN)", and "()". The default interval is closed to the left and open to the right. If no random number generator is specified, the default rndGen will be used as the source of randomness.

  1. auto uniformDistribution(T1 a, T2 b, UniformRNG rng)
    uniformDistribution
    (
    string boundaries = "[)"
    T1
    T2
    UniformRNG
    )
    (
    T1 a
    ,
    T2 b
    ,
    UniformRNG rng
    )
    if (
    (
    isNumeric!(CommonType!(T1, T2)) ||
    isSomeChar!(CommonType!(T1, T2))
    )
    &&
    isUniformRNG!UniformRNG
    )
  2. auto uniformDistribution(T1 a, T2 b)
  3. auto uniformDistribution(UniformRNG rng)
  4. auto uniformDistribution()
  5. auto uniformDistribution(UniformRNG rng)
  6. auto uniformDistribution()

Meta