- java.lang.Object
-
- develop.toolkit.base.utils.RandomAdvice
-
public final class RandomAdvice extends Object
-
-
构造器概要
构造器 构造器 说明 RandomAdvice()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static <T> TnextElement(List<T> list)随机一个元素static <T> List<T>nextElements(List<T> list, int count)随机count个元素static int[]nextInts(int startInclusive, int endExclusive, int count)随机count个整数
-
-
-
方法详细资料
-
nextInts
public static int[] nextInts(int startInclusive, int endExclusive, int count)随机count个整数- 参数:
startInclusive-endExclusive-count-- 返回:
-
nextElements
public static <T> List<T> nextElements(List<T> list, int count)
随机count个元素- 类型参数:
T-- 参数:
list-count-- 返回:
-
nextElement
public static <T> T nextElement(List<T> list)
随机一个元素- 类型参数:
T-- 参数:
list-- 返回:
-
-