We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ffdb8f commit 30477d3Copy full SHA for 30477d3
app/src/main/java/hexlet/code/games/Utils.java
@@ -0,0 +1,14 @@
1
+package hexlet.code.games;
2
+
3
+public class Utils {
4
5
+ public static int randomIntValue(int leftBorder, int rightBorder) {
6
+ return (int) (Math.random() * (rightBorder - leftBorder)) + leftBorder;
7
+ }
8
9
+ public static int randomIntValue() {
10
+ final int left = 1;
11
+ final int right = 26;
12
+ return randomIntValue(left, right);
13
14
+}
0 commit comments