MCPcopy Create free account
hub / github.com/DiUS/java-faker / randomDigitNotZero

Method randomDigitNotZero

src/main/java/com/github/javafaker/Number.java:22–24  ·  view source on GitHub ↗

Returns a random number from 1-9 (both inclusive)

()

Source from the content-addressed store, hash-verified

20 * Returns a random number from 1-9 (both inclusive)
21 */
22 public int randomDigitNotZero() {
23 return decimalBetween(1,10).intValue();
24 }
25
26 /**
27 * @see Number#numberBetween(long, long)

Callers 1

Calls 1

decimalBetweenMethod · 0.95

Tested by 1