-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRandomizer.java
57 lines (54 loc) · 991 Bytes
/
Randomizer.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import java.util.Random;
public class Randomizer{
int hold1, hold2, hold3, hold4, hold5, hold6, hold7;
public Randomizer(int num1, int num2, int num3, int num4, int num5, int num6, int num7){
Random gen = new Random();
int x = gen.nextInt(250);
if(x % 3 == 0){
hold1 = num1;
hold2 = num5;
hold3 = num2;
hold4 = num6;
hold5 = num3;
hold6 = num7;
hold7 = num4;
} else if (x % 3 == 1){
hold1 = num4;
hold2 = num1;
hold3 = num5;
hold4 = num2;
hold5 = num6;
hold6 = num3;
hold7 = num7;
} else {
hold1 = num2;
hold2 = num3;
hold3 = num4;
hold4 = num5;
hold5 = num6;
hold6 = num7;
hold7 = num1;
}
}
public int returnNum1(){
return hold1;
}
public int returnNum2(){
return hold2;
}
public int returnNum3(){
return hold3;
}
public int returnNum4(){
return hold4;
}
public int returnNum5(){
return hold5;
}
public int returnNum6(){
return hold6;
}
public int returnNum7(){
return hold7;
}
}