Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BruceEckel/OnJava8-Examples
/ random
Method
random
patterns/recyclea/RecycleA.java:21–25 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
19
private
static
SplittableRandom rand =
20
new
SplittableRandom(42);
21
public
static
Trash random() {
22
return
constructors
23
.get(rand.nextInt(SIZE))
24
.apply(rand.nextDouble());
25
}
26
}
27
28
public
class
RecycleA {
Callers
1
Box
Class · 0.45
Calls
2
apply
Method · 0.65
get
Method · 0.65
Tested by
no test coverage detected