public class BirthdateRandomizer extends DataRandomizer
Copyright (C) 2015 JIOWA Business Solutions GmbH, Bettinastr. 30 , D-60325 Frankfurt am Main, Germany
Homepage: www.jiowa.de
All rights reserved.
Download: www.jiowa.de/download.html
License: www.jiowa.de/license.html
Modifier and Type | Field and Description |
---|---|
protected static BirthdateRandomizer |
INSTANCE |
protected java.util.Random |
random
Randomizer class for int values
|
COMMENT_SYMBOL
Modifier | Constructor and Description |
---|---|
protected |
BirthdateRandomizer() |
Modifier and Type | Method and Description |
---|---|
static BirthdateRandomizer |
getInstance() |
Birthdate |
getRandom(int minAge,
int maxAge)
Creates a random age.
|
createResourceReader, readResourceAsListOfLines, readResourceAsString
protected static final BirthdateRandomizer INSTANCE
protected final java.util.Random random
public static BirthdateRandomizer getInstance()
public Birthdate getRandom(int minAge, int maxAge)
minAge
- minimum agemaxAge
- maximum age