Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ee0bc0d176
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (16 sloc) 0.384 kb
public class GenRandom {
static int last = 42;
public static double gen_random(double max) {
last = (last * 3877 + 29573) % 139968;
return( max * last / 139968 );
}
public static int Main() {
int N = 900000;
double result = 0;
while (N-- != 0) {
result = gen_random(100.0);
}
//printf("%.9f\n", result);
return(0);
}
}
Jump to Line
Something went wrong with that request. Please try again.