squiggle.c

Self-contained Monte Carlo estimation in C99
Log | Files | Refs | README

example.c (238B)


      1 #include "../../../squiggle.h"
      2 #include <stdio.h>
      3 #include <stdlib.h>
      4 
      5 int main()
      6 {
      7     // set randomness seed
      8     uint64_t* seed = malloc(sizeof(uint64_t));
      9     *seed = 1000; // xorshift can't start with 0
     10 
     11     // ...
     12 
     13     free(seed);
     14 }