|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.RandomThings
public class RandomThings
Class for doing random things.
| Constructor Summary | |
|---|---|
RandomThings()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RandomThings()
| Method Detail |
|---|
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||