Class RandomUtil

Object
com.liferay.portal.kernel.security.RandomUtil

public class RandomUtil extends Object
Author:
Shuyang Zhou
  • Field Details

    • random

      protected static Random random
  • Constructor Details

    • RandomUtil

      public RandomUtil()
  • Method Details

    • 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)