mirror of
https://github.com/robertvokac/time-calc.git
synced 2025-03-25 07:27:49 +01:00
Added new improvements
This commit is contained in:
parent
c18da0c12c
commit
33b2bf0aa4
@ -206,7 +206,7 @@ public class Battery extends Widget {
|
|||||||
return getRandom(index, false);
|
return getRandom(index, false);
|
||||||
}
|
}
|
||||||
private double getRandom(int index, boolean keepArray) {
|
private double getRandom(int index, boolean keepArray) {
|
||||||
if (!keepArray && Math.random() > 0.95) {
|
if (!keepArray && Math.random() > 0.975) {
|
||||||
randomDoubles[index] = Math.random();
|
randomDoubles[index] = Math.random();
|
||||||
}
|
}
|
||||||
return randomDoubles[index];
|
return randomDoubles[index];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user