random

Generates a random floating point value.

  1. T random()
    template random(T, T min, T max, uint seed = uint.max, uint R0 = __LINE__, string R1 = __TIMESTAMP__, string R2 = __FILE_FULL_PATH__, string R3 = __FUNCTION__)
    pure
    T
    random
    ()
    if (
    is(T == float) ||
    is(T == double)
    )
  2. template random(T, T min, T max, uint seed = uint.max, uint R0 = __LINE__, string R1 = __TIMESTAMP__, string R2 = __FILE_FULL_PATH__, string R3 = __FUNCTION__)

Members

Functions

random
T random()
Undocumented in source. Be warned that the author may not have intended to support it.

Parameters

min

Minimum value.

max

Maximum value.

seed

The seed to generate with, useful if you do multiple random generations in one line, as it causes entropy.

Meta