Skip to content

Commit 50d895c

Browse files
committed
feat: add Utils.java
1 parent 2ef87f1 commit 50d895c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package hexlet.code;
2+
3+
public class Utils {
4+
public static int generateNumber(int min, int max) {
5+
return (int) Math.floor(Math.random() * (max - min + 1)) + min;
6+
}
7+
}

0 commit comments

Comments
 (0)