Module rand.constants stdlib

rand.constants
Version:
0.3.3
License:
MIT
Dependencies from vmod:
0
Imports:
0
Imported by:
1
Repository:
OS-specific
Show selected OS-specific symbols.
Backend-specific
Show selected Backend-specific symbols.

Dependencies defined in v.mod

This section is empty.

Imports

This section is empty.

Imported by

  • Standard Library

Aliases

This section is empty.

Constants

#constant lower_mask

lower_mask                = u64(0x00000000FFFFFFFF)

Commonly used constants across RNGs - some taken from "Numerical Recipes".

#constant max_u32

max_u32                   = u32(0xFFFFFFFF)

Commonly used constants across RNGs - some taken from "Numerical Recipes".

#constant max_u64

max_u64                   = u64(0xFFFFFFFFFFFFFFFF)

Commonly used constants across RNGs - some taken from "Numerical Recipes".

#constant u31_mask

u31_mask                  = u32(0x7FFFFFFF)

Commonly used constants across RNGs - some taken from "Numerical Recipes".

#constant u63_mask

u63_mask                  = u64(0x7FFFFFFFFFFFFFFF)

Commonly used constants across RNGs - some taken from "Numerical Recipes".

#constant ieee754_mantissa_f32_mask

ieee754_mantissa_f32_mask = (u32(1) << 23) - 1

Commonly used constants across RNGs - some taken from "Numerical Recipes".

#constant ieee754_mantissa_f64_mask

ieee754_mantissa_f64_mask = (u64(1) << 52) - 1

Commonly used constants across RNGs - some taken from "Numerical Recipes".

#constant reciprocal_2_23rd

reciprocal_2_23rd         = 1.0 / f64(u32(1) << 23)

Commonly used constants across RNGs - some taken from "Numerical Recipes".

#constant reciprocal_2_52nd

reciprocal_2_52nd         = 1.0 / f64(u64(1) << 52)

Commonly used constants across RNGs - some taken from "Numerical Recipes".

Sum types

This section is empty.

Functions

This section is empty.

Structs

This section is empty.

Interfaces

This section is empty.

Enums

This section is empty.