Liferay 6.2-ce-ga5

com.liferay.portal.kernel.security
Class RandomUtil

java.lang.Object
  extended by com.liferay.portal.kernel.security.RandomUtil

public class RandomUtil
extends Object


Field Summary
protected static Random random
           
 
Constructor Summary
RandomUtil()
           
 
Method Summary
static int nextInt(int n)
           
static int[] nextInts(int n, int size)
           
static void shuffle(Random random, int[] numbers)
           
static String shuffle(Random random, String s)
           
static void shuffle(Random random, StringBuilder sb)
           
static String shuffle(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

random

protected static Random random
Constructor Detail

RandomUtil

public RandomUtil()
Method Detail

nextInt

public static int nextInt(int n)

nextInts

public static int[] nextInts(int n,
                             int size)

shuffle

public static void shuffle(Random random,
                           int[] numbers)

shuffle

public static String shuffle(Random random,
                             String s)

shuffle

public static void shuffle(Random random,
                           StringBuilder sb)

shuffle

public static String shuffle(String s)

Liferay 6.2-ce-ga5