Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DiUS/java-faker
/ randomDouble
Method
randomDouble
src/main/java/com/github/javafaker/Number.java:73–75 ·
view source on GitHub ↗
(int maxNumberOfDecimals, int min, int max)
Source
from the content-addressed store, hash-verified
71
}
72
73
public
double randomDouble(
int
maxNumberOfDecimals,
int
min,
int
max) {
74
return
randomDouble(maxNumberOfDecimals,(long) min, (long) max);
75
}
76
/**
77
* Returns a random double
78
*
Callers
3
testRandomDouble
Method · 0.80
call
Method · 0.80
testRandomDoubleMaxEqualsMin
Method · 0.80
Calls
1
decimalBetween
Method · 0.95
Tested by
3
testRandomDouble
Method · 0.64
call
Method · 0.64
testRandomDoubleMaxEqualsMin
Method · 0.64