Added new improvements
This commit is contained in:
parent
33b2bf0aa4
commit
2a597ceee5
@ -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
|
||||
|
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user