uniformDistribution

Generates an infinite sequence of uniformly-distributed numbers in the range [T.min, T.max] for any integral type T. 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)
  2. auto uniformDistribution(T1 a, T2 b)
  3. auto uniformDistribution(UniformRNG rng)
    uniformDistribution
    (
    T
    UniformRNG
    )
    (
    UniformRNG rng
    )
    if (
    !is(T == enum) &&
    (
    isIntegral!T ||
    isSomeChar!T
    )
    &&
    isUniformRNG!UniformRNG
    )
  4. auto uniformDistribution()
  5. auto uniformDistribution(UniformRNG rng)
  6. auto uniformDistribution()

Meta