heptagon/examples/random/random.c
Gwenaël Delaval d5ee87b7ed Added example Markov
Example Markov : simulation of a Markov chain.

Use of a Random module, external call to C rand() function.
2015-09-17 11:17:29 +02:00

8 lines
143 B
C

#include <stdlib.h>
#include "random.h"
void Random__random_step(Random__random_out *o) {
o->z = ((double)random())/((double)RAND_MAX);
}