hap.random.traits

Implements compile-time checks for different features of random number generating code.

Members

Templates

isRandomDistribution
template isRandomDistribution(RandomDist, ElementType)
template isRandomDistribution(RandomDist)

Test if RandomDist is a random distribution. The overload taking an ElementType also makes sure that the distribution generates values of that type.

isSeedable
template isSeedable(UniformRNG, SeedType)
template isSeedable(UniformRNG)

Test if UniformRNG is a seedable uniform random number generator. The overload taking a SeedType also makes sure that the generator can be seeded with SeedType.

isUniformRNG
template isUniformRNG(Range, ElementType)
template isUniformRNG(Range)

Test if Range is a uniform random number generator. The overload taking an ElementType also makes sure that the RNG generates values of that type.

Meta

Source

See Source File
$(HAPSRC hap/random/_traits.d)