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

Method birthday

src/main/java/com/github/javafaker/DateAndTime.java:160–162  ·  view source on GitHub ↗

Generates a random birthday between 65 and 18 years ago. @return a random birthday between 65 and 18 years ago.

()

Source from the content-addressed store, hash-verified

158 * @return a random birthday between 65 and 18 years ago.
159 */
160 public Date birthday() {
161 return birthday(DEFAULT_MIN_AGE, DEFAULT_MAX_AGE);
162 }
163
164 /**
165 * Generates a random birthday between two ages.

Callers 2

testBirthdayMethod · 0.80
testBirthdayWithAgesMethod · 0.80

Calls 2

betweenMethod · 0.95
getMethod · 0.65

Tested by 2

testBirthdayMethod · 0.64
testBirthdayWithAgesMethod · 0.64