public class RandomPermutation<T>
implements Iterable<T>
Constructor and Description |
---|
RandomPermutation(Random random,
List<T> array) |
Modifier and Type | Method and Description |
---|---|
Iterator<T> |
iterator() |
static void |
main(Rail<String> id$38) |
void |
shuffle()
Randomize the array.
|
String |
toString() |
public List<T> array
public Random random
public RandomPermutation(Random random, List<T> array)
public void shuffle()
public Iterator<T> iterator()
public String toString()
public static void main(Rail<String> id$38)