small fixes

This commit is contained in:
2018-05-22 12:55:19 +02:00
parent 902fb3b89d
commit 0457f135e4
5 changed files with 28 additions and 4 deletions

View File

@@ -9,6 +9,7 @@ import worms.programs.UnaryExpression;
import worms.util.Coordinate;
import java.io.Console;
import java.util.concurrent.ThreadLocalRandom;
import java.util.function.BinaryOperator;
import java.util.function.DoubleBinaryOperator;
@@ -21,5 +22,14 @@ public class Main {
{ false, false, false, false } };
public static void main(String[] args) {
for (int i = 0; i < 10; i++) {
int x =ThreadLocalRandom.current().nextInt(0, 15) / 2;
x += (x % 2 == 0 ? 1:0);
System.out.println(x);
}
}
}