liboilrandom.h File Reference

oil_random_s32 ( oil_type_s32 *, int )

OIL_BEGIN_DECLS IMPORT_C voidoil_random_s32(oil_type_s32 *dest,
intn
)

oil_random_s32: : :

Writes random values in the range [-(1<<31), (1<<31)-1] to the destination array.

oil_random_s64 ( oil_type_s64 *, int )

IMPORT_C voidoil_random_s64(oil_type_s64 *dest,
intn
)

oil_random_s64:

Writes random values in the range [-(1<<63), (1<<63)-1] to the destination array.

oil_random_s16 ( oil_type_s16 *, int )

IMPORT_C voidoil_random_s16(oil_type_s16 *dest,
intn
)

oil_random_s16:

Writes random values in the range [-(1<<15), (1<<15)-1] to the destination array.

oil_random_s8 ( oil_type_s8 *, int )

IMPORT_C voidoil_random_s8(oil_type_s8 *dest,
intn
)

oil_random_s8:

Writes random values in the range [-(1<<7), (1<<7)-1] to the destination array.

oil_random_u32 ( oil_type_u32 *, int )

IMPORT_C voidoil_random_u32(oil_type_u32 *dest,
intn
)

oil_random_u32:

Writes random values in the range [0, (1<<32)-1] to the destination array.

oil_random_u64 ( oil_type_u64 *, int )

IMPORT_C voidoil_random_u64(oil_type_u64 *dest,
intn
)

oil_random_u64:

Writes random values in the range [0, (1<<64)-1] to the destination array.

oil_random_u16 ( oil_type_u16 *, int )

IMPORT_C voidoil_random_u16(oil_type_u16 *dest,
intn
)

oil_random_u16:

Writes random values in the range [0, (1<<16)-1] to the destination array.

oil_random_u8 ( oil_type_u8 *, int )

IMPORT_C voidoil_random_u8(oil_type_u8 *dest,
intn
)

oil_random_u8:

Writes random values in the range [0, (1<<8)-1] to the destination array.

oil_random_f64 ( oil_type_f64 *, int )

IMPORT_C voidoil_random_f64(oil_type_f64 *dest,
intn
)

oil_random_f64:

Writes random double-precision floating point values in the range [0, 1.0) to the destination array.

oil_random_f32 ( oil_type_f32 *, int )

IMPORT_C voidoil_random_f32(oil_type_f32 *dest,
intn
)

oil_random_f32:

Writes random single-precision floating point values in the range [0, 1.0) to the destination array.

oil_random_argb ( oil_type_u32 *, int )

IMPORT_C voidoil_random_argb(oil_type_u32 *dest,
intn
)

oil_random_alpha ( oil_type_u8 *, int )

IMPORT_C voidoil_random_alpha(oil_type_u8 *dest,
intn
)

oil_rand_s32

oil_rand_s32:

Evaluates to a random integer in the range [-(1<<31), (1<<31)-1].

oil_rand_s64

oil_rand_s64:

Evaluates to a random integer in the range [-(1<<63), (1<<63)-1].

oil_rand_s16

oil_rand_s16:

Evaluates to a random integer in the range [-(1<<15), (1<<15)-1].

oil_rand_s8

oil_rand_s8:

Evaluates to a random integer in the range [-(1<<7), (1<<7)-1].

oil_rand_u32

oil_rand_u32:

Evaluates to a random integer in the range [0, (1<<32)-1].

oil_rand_u64

oil_rand_u64:

Evaluates to a random integer in the range [0, (1<<64)-1].

oil_rand_u16

oil_rand_u16:

Evaluates to a random integer in the range [0, (1<<16)-1].

oil_rand_u8

oil_rand_u8:

Evaluates to a random integer in the range [0, (1<<8)-1].

oil_rand_f64

oil_rand_f64:

Evaluates to a random double-precision floating point number in the range [0, 1.0).

oil_rand_f32

oil_rand_f32:

Evaluates to a random single-precision floating point number in the range [0, 1.0).