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

Method digits

src/main/java/com/github/javafaker/Number.java:112–118  ·  view source on GitHub ↗
(int count)

Source from the content-addressed store, hash-verified

110 }
111
112 public String digits(int count) {
113 final StringBuilder tmp = new StringBuilder();
114 for (int i = 0; i < count; i++) {
115 tmp.append(randomDigit());
116 }
117 return tmp.toString();
118 }
119
120 public String digit() {
121 return digits(1);

Callers 4

digitMethod · 0.95
testDigitsMethod · 0.80
promotionCodeMethod · 0.80
isbnRegistrantMethod · 0.80

Calls 2

randomDigitMethod · 0.95
toStringMethod · 0.80

Tested by 1

testDigitsMethod · 0.64