Random.value

  1. T value()
  2. T value(const(T) max)
    struct Random(T = uint)
    @nogc
    T
    value
    (
    const(T) max
    )
  3. T value(const(T) from, const(T) to)

Parameters

max const(T)

sets the max value

Return Value

Type: T

next random value less than max