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
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;
|
package org.nanoboot.utils.timecalc.gui.common;
|
||||||
/**
|
/**
|
||||||
* Java Toaster is a java utility class for your swing applications
|
* Java Toaster is a java utility class for your swing applications
|
||||||
|
@ -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.975) {
|
if (!keepArray && Math.random() > 0.96) {
|
||||||
randomDoubles[index] = Math.random();
|
randomDoubles[index] = Math.random();
|
||||||
}
|
}
|
||||||
return randomDoubles[index];
|
return randomDoubles[index];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user