Aggiunti file già presenti nell'HD
This commit is contained in:
12
2.x/e2.13/DieSimulator.java
Normal file
12
2.x/e2.13/DieSimulator.java
Normal file
@ -0,0 +1,12 @@
|
||||
import java.util.Random;
|
||||
|
||||
public class DieSimulator {
|
||||
Random generator;
|
||||
public DieSimulator() {
|
||||
generator = new Random();
|
||||
}
|
||||
|
||||
public int tira() {
|
||||
return generator.nextInt(6) + 1;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user