Constructor Random()
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 Long.toHexString(new Random().nextLong());
2
private static final int clock_sequence = (new Random()).nextInt(16384);
3
rand = new Random();
4
answer = Math.abs(new Random().nextInt() % 100) + 1;
5
mRandom = new Random();
6
if (rand == null) rand = new Random();
7
Random rnd = new Random();
8
dbStamp = (new Random()).nextLong();
9
ran = new Random();
10
rand = new Random();
11
Random rand = new Random();
12
String username = Long.toString ( new Random ( ).nextLong ( ) );
13
Random r = new Random();
14
Random randGen = new Random();
15
Random rnd = new Random();
16
Random rand = new Random();
17
Random r = new Random();
18
Random randGenerator = new Random();
19
Random rand = new Random();
20
Random r = new Random();
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.