ich verfolge aktuell eine Java Serie und hatte heute Random generator auf dem Plan der Sourcecode aus dem Video:
Code (Text):
import java.util.Random;
public class Panjutorials {
public static void main(String[] args) {
Random wuerfel = new Random();
int augenZahl;
for (int i=0; i<10; i++){
augenZahl = 1 + wuerfel.nextInt(6);
System.out.println(augenZahl);
}
}
}
public class Panjutorials {
public static void main(String[] args) {
Random wuerfel = new Random();
int augenZahl;
for (int i=0; i<10; i++){
augenZahl = 1 + wuerfel.nextInt(6);
System.out.println(augenZahl);
}
}
}
Problem mit "Random" in Java
Problem mit "Random" in Java
0 commentaires:
Enregistrer un commentaire