MCPcopy Index your code
hub / github.com/apache/groovy / gen_random

Method gen_random

benchmark/bench/heapsort.java:28–30  ·  view source on GitHub ↗
(double max)

Source from the content-addressed store, hash-verified

26
27 public static long last = 42;
28 public static double gen_random(double max) {
29 return( max * (last = (last * IA + IC) % IM) / IM );
30 }
31
32 public static void heapsort(int n, double ra[]) {
33 int l, j, ir, i;

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected