From e42c8e8b6050a346ee45524981c22650c3b29078 Mon Sep 17 00:00:00 2001 From: "ray.j.greenwell" Date: Wed, 31 Mar 2010 22:09:00 +0000 Subject: [PATCH] getRange() -> getInRange(). git-svn-id: https://samskivert.googlecode.com/svn/trunk@2767 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- src/java/com/samskivert/util/RandomUtil.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java/com/samskivert/util/RandomUtil.java b/src/java/com/samskivert/util/RandomUtil.java index 1fbe9b8b..ca86c462 100644 --- a/src/java/com/samskivert/util/RandomUtil.java +++ b/src/java/com/samskivert/util/RandomUtil.java @@ -64,7 +64,7 @@ public class RandomUtil * Returns a pseudorandom, uniformly distributed int value between * high and low, exclusive of each. * - * @deprecated use getRange(int, int). + * @deprecated use getInRange(int, int). */ @Deprecated public static int getInt (int high, int low) @@ -76,7 +76,7 @@ public class RandomUtil * Returns a pseudorandom, uniformly distributed int value between * low (inclusive) and high (exclusive). */ - public static int getRange (int low, int high) + public static int getInRange (int low, int high) { return low + rand.nextInt(high - low); } @@ -85,7 +85,7 @@ public class RandomUtil * Returns a pseudorandom, uniformly distributed float value between * low (inclusive) and high (exclusive). */ - public static float getRange (float low, float high) + public static float getInRange (float low, float high) { return low + (rand.nextFloat() * (high - low)); }