Skip to content

Commit 4244b9b

Browse files
committed
Created App Utils
1 parent e4b06f2 commit 4244b9b

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.demoapp;
2+
3+
/**
4+
* Created by aslan on 8/17/2017.
5+
*/
6+
7+
public class AppUtils {
8+
static int randomWithRange(int min, int max) {
9+
int range = (max - min) + 1;
10+
return (int) (Math.random() * range) + min;
11+
}
12+
}

0 commit comments

Comments
 (0)