Added new improvements

This commit is contained in:
Robert Vokac 2024-02-04 12:54:06 +00:00
parent 33b2bf0aa4
commit 2a597ceee5
No known key found for this signature in database
GPG Key ID: 693D30BEE3329055
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
/**
* This Java class named Toaster is licence under this licence: Apache License V2.0
*/
package org.nanoboot.utils.timecalc.gui.common;
/**
* Java Toaster is a java utility class for your swing applications

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.975) {
if (!keepArray && Math.random() > 0.96) {
randomDoubles[index] = Math.random();
}
return randomDoubles[index];