Method nextInt()
Return type: int
Member of:
java.util.Random
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
return new MultiplexorID(Math.abs(random.nextInt()));
2
((r.nextInt() & 0xffff)*311040000000L);
3
answer = Math.abs(new Random().nextInt() % 100) + 1;
4
int count = random.nextInt();
5
balancer_seq[i] = Math.abs(r.nextInt());
6
int i = Math.abs(rnd.nextInt());
7
int index = Math.abs(rand.nextInt()) % listeners.size();
8
int r=_random.nextInt();
9
b[i] = (byte) random.nextInt();
10
int key = (rand.nextInt() & 0x7FFFFFFF) % nrRows + 1000000;
11
byte a = (byte)(RandomManager.getInstance().getRandom().nextInt()>>8);
12
int rand = random.nextInt() + getInc();
13
int c = r.nextInt();
14
int vRandomNumber = vRandom.nextInt() ;
15
randList.add(new Short((short) rand.nextInt()));
16
p = getPage(rand.nextInt());
17
if ((mRandom.nextInt() % 20) == 0) {
18
while (s_random.nextInt() > 0) {
19
int id = RANDOM.nextInt ();
20
expected += (random.nextInt() % 1024);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.