Method nextLong()
Return type: long
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 return cLastRandom = new Random(cLastRandom.nextLong());
3 dbStamp = (new Random()).nextLong();
4 long r = random.nextLong();
5 setSeed(randomSeeds.nextLong());
6 return new Long(getRandom().nextLong());
7 final long rand = (new Random(System.currentTimeMillis())).nextLong();
8 String username = Long.toString ( new Random ( ).nextLong ( ) );
9 dos.writeLong(nextLong());
10 id = Long.toString(mRandom.nextLong() & Long.MAX_VALUE, 36);
11 doSleep(Math.abs(s_random.nextLong()) % maximumTime);
12 m_managerKey = m_keyGenerator.nextLong();
13 return new Long(Math.abs(rnd.nextLong()));
14 new java.security.SecureRandom().nextLong();
15 long c = r.nextLong();
16 randList.add(new Long((short) rand.nextLong()));
17 long n = randomSource.nextLong();
18 r = random.nextLong();
19 value = ((value << 32) ^ r.nextLong());
20 alias = Long.toHexString(rndSeed.nextLong()).toUpperCase();
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.