Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BruceEckel/OnJava8-Examples
/ getAsDouble
Method
getAsDouble
onjava/Rand.java:199–201 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
197
class
Pdouble implements DoubleSupplier {
198
SplittableRandom r =
new
SplittableRandom(47);
199
@Override
public
double getAsDouble() {
200
return
trim(r.nextDouble());
201
}
202
public
double get(
int
n) {
203
return
getAsDouble();
204
}
Callers
2
get
Method · 0.95
main
Method · 0.45
Calls
1
trim
Method · 0.80
Tested by
no test coverage detected