Thousands of examples at your fingertips!
All classes, methods fields etc. are linked to the API documentation.
All members are listed by frequency of use or alphabetically (see left pane).
Links to examples and utility functions/classes are shown below
Class java.util.Random
[api documentation] [ main menu] Search

Links to examples (only one line shown below for each example):
[add your own example]

1 actionsRandom.setSeed ( level );
2 random.nextInt ( 256 ),
3 random.nextInt ( 256 ),
4 return new Integer(Math.abs(rnd.nextInt()));
5 Random r = new Random();
6 Random r = new Random();
7 Random rnd = new Random();
8 return Long.toHexString(new Random().nextLong());
9 random.nextInt ( 256 ),
10 Byte bite = new Byte((byte) seed.nextInt());
11 Random r = new Random();
12 Random randGenerator = new Random();
13 Random rand = new Random();
14 Random random = new Random ( );
15 Random r = new Random(); // XXX Need better seed?
16 private static final int clock_sequence = (new Random()).nextInt(16384);
17 ran = new Random();
18 answer = Math.abs(new Random().nextInt() % 100) + 1;
19 Random rnd = new Random();
20 Random rand = new Random();

Links to utility classes and functions:

1 org.cougaar.lib.util.UTILRandom
2 org.cougaar.util.Random
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.