summaryrefslogtreecommitdiffstats
path: root/funtools/funtest/sample.fc
blob: 438417693432430e1c614470ea8fe19828b6ddc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
global
#include <stdlib.h>
end

local
long int seed = getenv("SEED") ? atoi(getenv("SEED")) : 1 ;
double limit = getenv("LIMIT") ? atof(getenv("LIMIT")) : 0.8;

srand48(seed);
end

cur->x;
if ( drand48() > limit ) continue;