Embedded Artistry Framework
Embedded Systems C++ Framework
Functions
test.h File Reference
#include <stdint.h>
#include <stdlib.h>
Include dependency graph for test.h:
This graph shows which files directly or indirectly include this file:

Functions

void test_randseed (uint64_t s)
 
uint64_t test_randn (uint64_t n)
 
uint64_t test_randint (uint64_t a, uint64_t b)
 
void test_shuffle (uint64_t *p, size_t n)
 
void test_randrange (uint64_t *p, size_t n)
 
int t_choose (uint64_t n, size_t k, uint64_t *p)
 

Function Documentation

◆ t_choose()

int t_choose ( uint64_t  n,
size_t  k,
uint64_t p 
)

◆ test_randint()

uint64_t test_randint ( uint64_t  a,
uint64_t  b 
)

References a, b, n, rand64(), and test_randn().

◆ test_randn()

uint64_t test_randn ( uint64_t  n)

References n, r, rand64(), and UINT64_MAX.

Referenced by shuffle2(), t_choose(), test_randint(), and uint64_gen().

Here is the caller graph for this function:

◆ test_randrange()

void test_randrange ( uint64_t p,
size_t  n 
)

References n, p, and test_shuffle().

◆ test_randseed()

void test_randseed ( uint64_t  s)

References s, and seed.

Referenced by uint64_gen().

Here is the caller graph for this function:

◆ test_shuffle()

void test_shuffle ( uint64_t p,
size_t  n 
)

References n, p, and shuffle2().

Referenced by test_randrange(), and uint64_gen().

Here is the caller graph for this function: