public class ZhFairyUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CITY_MAX
Max code of city
|
static int |
DISTRICT_MAX
Max code of city district
|
static String[] |
PROV_LIST
Codes of China provinces
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getRandomNumStr(BaseProducer baseProducer,
int max,
int paddingSize)
Get random number from 1 to max in 0 leading string format.
|
public static final String[] PROV_LIST
public static final int CITY_MAX
public static final int DISTRICT_MAX
public static String getRandomNumStr(BaseProducer baseProducer, int max, int paddingSize)
baseProducer - BaseProducermax - upper bound of numberpaddingSize - padding sizeCopyright © 2022. All rights reserved.