|
|
@ -6,6 +6,19 @@ import java.lang.Math; |
|
|
|
|
|
|
|
public class ITsecAufgaben { |
|
|
|
|
|
|
|
public int[] randomNumberArray(int[] ausgabe) { |
|
|
|
int max = 99, min = 0, range, random; |
|
|
|
range = max - min + 1; |
|
|
|
|
|
|
|
for(int i = 0; i <= (ausgabe.length - 1); i++) { |
|
|
|
random = (int) (Math.random() * range) + min; |
|
|
|
ausgabe[i] = random; |
|
|
|
} |
|
|
|
|
|
|
|
return ausgabe; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void fünfteAufgabe() { |
|
|
|
|
|
|
|
System.out.println( |
|
|
|