com.hazelcast.util
Class RandomPicker

java.lang.Object
  extended by com.hazelcast.util.RandomPicker

public final class RandomPicker
extends Object

User: ahmetmircik Date: 10/7/13 Time: 12:27 PM


Method Summary
static int getInt(int n)
          Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInt

public static int getInt(int n)
Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence. Starts the random number generator sequence if it has not been initialized.

Parameters:
n - the specified value
Returns:
a value between 0 (inclusive) and the specified value (exclusive).


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.