public static class Util.RandomCodePoints extends Object
| Constructor and Description |
|---|
RandomCodePoints(boolean deterministic) |
| Modifier and Type | Method and Description |
|---|---|
void |
fillCodePointArray(int[] cpArr)
Fills the given array with random valid Code Points from 0, inclusive, to
Character.MAX_CODE_POINT, inclusive.
|
void |
fillCodePointArray(int[] cpArr,
int startCP,
int endCP)
Fills the given array with random valid Code Points from startCP, inclusive, to
endCP, exclusive.
|
int |
getCodePoint()
Return a single valid random Code Point from 0, inclusive, to
Character.MAX_CODE_POINT, inclusive.
|
int |
getCodePoint(int startCP,
int endCP)
Return a single valid random Code Point from startCP, inclusive, to
endCP, exclusive.
|
public RandomCodePoints(boolean deterministic)
deterministic - if true, configure java.util.Random with a fixed seed.public final void fillCodePointArray(int[] cpArr)
cpArr - the array to fillpublic final void fillCodePointArray(int[] cpArr,
int startCP,
int endCP)
cpArr - the array to fillstartCP - the starting Code Point, included.endCP - the ending Code Point, excluded. This value cannot exceed 0x110000.public final int getCodePoint()
public final int getCodePoint(int startCP,
int endCP)
startCP - the starting Code Point, included.endCP - the ending Code Point, excluded. This value cannot exceed 0x110000.Copyright © 2015–2018 Yahoo! Inc.. All rights reserved.