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

Method random

benchmark/bench/fasta.java:21–24  ·  view source on GitHub ↗
(double max)

Source from the content-addressed store, hash-verified

19
20 // pseudo-random number generator
21 public static final double random(double max) {
22 last = (last * IA + IC) % IM;
23 return max * last / IM;
24 }
25
26 // Weighted selection from alphabet
27 public static String ALU =

Callers 6

selectRandomMethod · 0.95
someStringMethod · 0.80
fFunction · 0.80
KFunction · 0.80

Calls

no outgoing calls

Tested by 1

someStringMethod · 0.64