3 # From: kgb@ast.cam.ac.uk (Karl Glazebrook)
13 print "not ok 1\n# The value of randbits is likely too low in config.sh\n";
17 $max = $n if $n > $max;
22 $off = log($max)/log(2);
23 if ($off > 0) { $off = int(.5+$off) }
24 else { $off = - int(.5-$off) }
25 print "# Consider adding $off to randbits\n" if $off > 0;
26 print "# Consider subtracting ", -$off, " from randbits\n" if $off < 0;
29 print "not ok 2\n# The value of randbits is likely too high in config.sh\n";
32 print "not ok 2\n# The value of randbits is likely too low in config.sh\n";
42 if ($n<0 || $n>=100) {
61 print "# srand is not consistent.\nnot " if rand != $r;
64 print "# rand is unchanging!\nnot " if rand == $r;