uniform

Generates a uniformly-distributed number in the range [T.min, T.max] for any integral type T. If no random number generator is passed, uses the default rndGen.

  1. auto uniform(T1 a, T2 b)
  2. auto uniform(T1 a, T2 b, UniformRNG rng)
  3. auto uniform(T1 a, T2 b, UniformRNG rng)
  4. auto uniform(UniformRNG rng)
    uniform
    (
    T
    UniformRNG
    )
    (
    UniformRNG rng
    )
    if (
    !is(T == enum) &&
    (
    isIntegral!T ||
    isSomeChar!T
    )
    &&
    isUniformRNG!UniformRNG
    )
  5. auto uniform()
  6. auto uniform(UniformRNG rng)
  7. auto uniform()

Meta