Class RandomAdvice

java.lang.Object
develop.toolkit.base.utils.RandomAdvice

public final class RandomAdvice extends Object
  • Constructor Details

    • RandomAdvice

      public RandomAdvice()
  • Method Details

    • nextInts

      public static int[] nextInts(int startInclusive, int endExclusive, int count)
      随机count个整数
    • nextElements

      public static <T> List<T> nextElements(List<T> list, int count)
      随机count个元素
    • nextElement

      public static <T> T nextElement(List<T> list)
      随机一个元素