public class RandomThings extends Object
| Constructor and Description |
|---|
RandomThings() |
| Modifier and Type | Method and Description |
|---|---|
static Vector<Object> |
giveRandomFrom(Vector<Integer> v,
int max)
Return 'max' random elements from a Vector.
|
static void |
main(String[] args)
entrypoint for calling this class from the commandline
For testing
|
static void |
shuffleArray(int[] arr)
Deprecated.
use java.util.
|
static Vector<Object> |
shuffleCloneVector(Vector<Integer> v)
Deprecated.
java.util.Collections#shuffle and clone
|
static void |
shuffleVector(Vector<Object> v)
Deprecated.
java.util.Collections#shuffle
|
public static void shuffleVector(Vector<Object> v)
public static Vector<Object> shuffleCloneVector(Vector<Integer> v)
public static void shuffleArray(int[] arr)
public static Vector<Object> giveRandomFrom(Vector<Integer> v, int max)
public static void main(String[] args)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}