diff options
Diffstat (limited to 'sources/core/VSProcess.java')
| -rw-r--r-- | sources/core/VSProcess.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sources/core/VSProcess.java b/sources/core/VSProcess.java index caa081f..03b980f 100644 --- a/sources/core/VSProcess.java +++ b/sources/core/VSProcess.java @@ -340,6 +340,15 @@ public class VSProcess extends VSPrefs { } /** + * Creates a random percentage 0..100 + * + * @return A random percentage 0..100 + */ + public synchronized int getRandomPercentage() { + return random.nextInt() % 101; + } + + /** * Adds the clock offset. This method is used by the task manager. * * @param add the clock offset to add. |
