Commit cd381b14 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Add 64bit integer PRNG functions to public API.

parent 869519bc
......@@ -78,14 +78,21 @@ PPM_ya_random(void);
/**
* PRNG function for type int uint64_t
* @return random number in range [0,2^64-1]
* @return random number in range [0,2^63-1]
**/
uint64_t
PPM_ya_random64(void);
/**
* PRNG function for type int int64_t
* @return random number in range [-2^64+1,2^64-1]
* @return random number in range [0,2^63-1]
**/
int64_t
PPM_irandp8(void);
/**
* PRNG function for type int int64_t
* @return random number in range [-2^63+1,2^63-1]
**/
int64_t
PPM_irand8(void);
......@@ -100,7 +107,7 @@ int
PPM_irandr(struct PPM_iinterval range);
/**
* PRNG function for type int
* PRNG function for type int64_t
* @param range range in which to generate random number
* @return random number in range [range.first,range.last]
**/
......@@ -389,6 +396,36 @@ void
PPM_frandr_mt_a(float *a, size_t n, struct PPM_iinterval_sp range);
/**
* PRNG function for array of type int64_t
* @param a pointer to array to fill with
* random numbers in range [-2^63+1,2^63-1]
* @param n number of elements in a to fill
**/
void
PPM_irand8_a(int64_t *a, size_t n);
/**
* PRNG function for array of type int64_t
* @param a pointer to array to fill with
* random numbers in range [0,2^63-1]
* @param n number of elements in a to fill
**/
void
PPM_irandp8_a(int64_t *a, size_t n);
/**
* PRNG function for array of type int64_t
*
* @param a pointer to array to fill with random numbers in range
* [range.first,range.last]
* @param n number of elements in a to fill
* @param range range in which to generate random numbers
**/
void
PPM_irandr8_a(int64_t *a, size_t n, struct PPM_iinterval64 range);
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment