Package at.letto.tools
Class VectorTools
java.lang.Object
at.letto.tools.VectorTools
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic int[]getSortedZahlen(int Anz) Bestimmt n Zufallszahlen sortiert von 0 bis n-1static int[]getZahlenAufsteigend(int Anz) Ain Array mit aufsteigenden Zahlenwerten, beginnend bei 0, erzeugenstatic int[]getZufallszahlen(int Anz) Bestimmt n Zufallszahlenstatic intrandom(int low, int high) 
- 
Constructor Details- 
VectorToolspublic VectorTools()
 
- 
- 
Method Details- 
getZufallszahlenpublic static int[] getZufallszahlen(int Anz) Bestimmt n Zufallszahlen- Parameters:
- Anz- : Anz an Zufallszahlen im Array
- Returns:
- int-Array von Anz-Zufallszahlen, wobei alle Zahlen von 0-n im Array vorkommen
 
- 
getSortedZahlenpublic static int[] getSortedZahlen(int Anz) Bestimmt n Zufallszahlen sortiert von 0 bis n-1- Parameters:
- Anz- : Anz an Werten im Array
- Returns:
- int-Array mit Werten von 0 - n-1
 
- 
getZahlenAufsteigendpublic static int[] getZahlenAufsteigend(int Anz) Ain Array mit aufsteigenden Zahlenwerten, beginnend bei 0, erzeugen- Parameters:
- Anz- : Azahl an Werten im Array
- Returns:
- : [0,1,2,3,4....]
 
- 
randompublic static int random(int low, int high) 
 
-