Odds of winning : 95.41%

# ​Fruit's Adventures use 8 stake buttons to offer 22 units to win. Odds of winning : 95.41%

8 stake buttons

22 game units

### Luck: Get extra results automatically

Luck: Get extra results automatically

### Multiple Number: Random 1 to 9 to multiple rewards

Multiple Number: Random 1 to 9 to multiple rewards

## Script to verify odds of winning as 95.41%

1
2
layout = [5, 4, 2, 8, 7, 1, 4, 7, 5, 2, 6, 5, 4, 3, 8, 2, 1, 0, 7, 6, 3, 1];
3
rate = [4, 2, 2, 0, 4, 8, 6, 4, 2, 2,12, 4, 6, 2, 0, 4, 4,32, 2,12, 8, 2];
4
sum=0;for(i=0;i<rate.length;i++)sum+=rate[i];
5
avg = sum / 20;
6
rate7 = [2,3,4,5,9];
7
// make sam_bet_rate
8
rate = [4, 2, 2, 5, 4, 8, 6, 4, 2, 2,12, 4, 6, 2, 5, 4, 4,32, 2,12, 8, 2];
9
sam_bet_rate = [];
10
for(var b=0;b<9;b++){
11
var s = 0;
12
for(var l=0;l<layout.length;l++){
13
if(layout[l]==b){
14
s += rate[l];
15
}
16
}
17
for(var l=0;l<layout.length;l++){
18
if(layout[l]==b){
19
sam_bet_rate[l] = s;
20
}
21
}
22
}
23
// sam_bet_rate = [10, 14, 8, 10, 10, 14, 14, 10, 10, 8, 24, 10, 14, 10, 10, 8, 14, 32, 10, 24, 10, 14]
24
ratej = [];
25
mini = 0;
26
for(var i=0;i<sam_bet_rate.length;i++){
27
ratej[i] = 1/sam_bet_rate[i];
28
if(mini>ratej[i] || mini==0) mini = ratej[i];
29
}
30
for(var i=0;i<ratej.length;i++){
31
ratej[i] = Math.round(ratej[i]/mini)
32
}
33
// ratej = [3, 2, 4, 3, 3, 2, 2, 3, 3, 4, 1, 3, 2, 3, 3, 4, 2, 1, 3, 1, 3, 2]
34
ratek=[]
35
ratek=ratej
36
for(k=1;k<rate.length;k++) ratek[k]=ratek[k-1]+ratej[k];
37
// ratek = [3, 5, 9, 12, 15, 17, 19, 22, 25, 29, 30, 33, 35, 38, 41, 45, 47, 48, 51, 52, 55, 57]
38
39
game_rate_rand=[];
40
for(j=i=0;i<rate.length;i++){
41
for(;j<ratek[i];j++) game_rate_rand[j]=i;
42
}
43
44
function get_random_rater_22(){
45
game_rate_rand = [0, 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 11, 11, 11, 12, 12, 13, 13, 13, 14, 14, 14, 15, 15, 15, 15, 16, 16, 17, 18, 18, 18, 19, 20, 20, 20, 21, 21];
46
var r = parseInt(Math.random()*game_rate_rand.length);
47
return game_rate_rand[r];
48
}
49
//verify random by looping 700000 times
50
51
sum7=0;
52
for(i=0;i<rate7.length;i++){
53
sum7 += rate7[i];
54
}
55
avg7 = sum7 / 5; //4.6
56
57
rate = [4, 2, 2, 12, 4, 8, 6, 4, 2, 2,12, 4, 6, 2, 12, 4, 4,32, 2,12, 8, 2];
58
loopCount = 10000;
59
sum=0;
60
for(i=0;i<loopCount;i++){
61
r=get_random_rater_22()
62
rr=rate[r]
63
var r7 = parseInt(Math.random()*9);
64
if(r7==7) rr *= 4.6;
65
sum+=rr;
66
}
67
avg = parseInt(sum / loopCount / 8 * 10000)/100 + "%";
68
result:
69
// avg = 95.41%
70
// end verify random function
71
72
Copied!