MCPcopy Create free account
hub / github.com/algorithmzuo/algorithm-journey / random

Method random

src/class041/Code03_SameMod.java:10–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9 // 为了测试
10 public static long random() {
11 return (long) (Math.random() * Long.MAX_VALUE);
12 }
13
14 // 计算 ((a + b) * (c - d) + (a * c - b * d)) % mod 的非负结果
15 public static int f1(long a, long b, long c, long d, int mod) {

Callers 15

mainMethod · 0.95
mainMethod · 0.45
randomArrayMethod · 0.45
mainMethod · 0.45
randomArrayMethod · 0.45
mainMethod · 0.45
randomArrayMethod · 0.45
randomizedSelectMethod · 0.45
randomArrayMethod · 0.45
mainMethod · 0.45
randomJobsMethod · 0.45
mainMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected