d5ee87b7ed
Example Markov : simulation of a Markov chain. Use of a Random module, external call to C rand() function.
8 lines
143 B
C
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);
|
|
}
|
|
|