Added new improvements

This commit is contained in:
Robert Vokac 2024-02-04 12:29:26 +00:00
parent c18da0c12c
commit 33b2bf0aa4
No known key found for this signature in database
GPG Key ID: 693D30BEE3329055

View File

@ -206,7 +206,7 @@ public class Battery extends Widget {
return getRandom(index, false);
}
private double getRandom(int index, boolean keepArray) {
if (!keepArray && Math.random() > 0.95) {
if (!keepArray && Math.random() > 0.975) {
randomDoubles[index] = Math.random();
}
return randomDoubles[index];