diff --git a/src/java/com/threerings/util/RandomUtil.java b/src/java/com/threerings/util/RandomUtil.java index b635d229c..7268e9e2b 100644 --- a/src/java/com/threerings/util/RandomUtil.java +++ b/src/java/com/threerings/util/RandomUtil.java @@ -1,5 +1,5 @@ // -// $Id: RandomUtil.java,v 1.6 2003/03/05 02:50:28 ray Exp $ +// $Id: RandomUtil.java,v 1.7 2003/03/18 19:38:30 ray Exp $ package com.threerings.util; @@ -44,6 +44,8 @@ public class RandomUtil * corresponding array element. * * @param weights an array of positive integers. + * @return an index into the array, or -1 if the sum of the weights + * is less than 1. * * For example, passing in {1, 0, 3, 4} will return *
| 0 | 1/8th of the time |