diff options
author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-17 21:07:33 +0000 |
---|---|---|
committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-17 21:07:33 +0000 |
commit | 7729de4d91ffbf0fe8fa4f2a95b85d3406845471 (patch) | |
tree | d930ee058c37104d7cd892dbbb7c56dc775abebc /random.c | |
parent | e181ae53918c09139e7f60bf5ad32741d91339cd (diff) | |
download | ruby-7729de4d91ffbf0fe8fa4f2a95b85d3406845471.tar.gz |
* array.c: Documentation: change => in call-seq to ->.
Harmonize "#=>" in examples. [ruby-core:30206]
* bignum.c: ditto
* class.c: ditto
* compar.c: ditto
* cont.c: ditto
* dir.c: ditto
* encoding.c: ditto
* enum.c: ditto
* enumerator.c: ditto
* error.c: ditto
* eval.c: ditto
* file.c: ditto
* gc.c: ditto
* io.c: ditto
* load.c: ditto
* marshal.c: ditto
* math.c: ditto
* numeric.c: ditto
* object.c: ditto
* pack.c: ditto
* proc.c: ditto
* process.c: ditto
* random.c: ditto
* range.c: ditto
* re.c: ditto
* ruby.c: ditto
* signal.c: ditto
* sprintf.c: ditto
* string.c: ditto
* struct.c: ditto
* thread.c: ditto
* time.c: ditto
* transcode.c: ditto
* variable.c: ditto
* vm_eval.c: ditto
* vm_method.c: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'random.c')
-rw-r--r-- | random.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -732,7 +732,7 @@ random_load(VALUE obj, VALUE dump) /* * call-seq: - * srand(number=0) => old_seed + * srand(number=0) -> old_seed * * Seeds the pseudorandom number generator to the value of * <i>number</i>. If <i>number</i> is omitted @@ -985,10 +985,10 @@ float_value(VALUE v) * * When the argument _limit_ is a +Range+, it returns a random * number where range.member?(number) == true. - * prng.rand(5..9) # => one of [5, 6, 7, 8, 9] - * prng.rand(5...9) # => one of [5, 6, 7, 8] - * prng.rand(5.0..9.0) # => between 5.0 and 9.0, including 9.0 - * prng.rand(5.0...9.0) # => between 5.0 and 9.0, excluding 9.0 + * prng.rand(5..9) #=> one of [5, 6, 7, 8, 9] + * prng.rand(5...9) #=> one of [5, 6, 7, 8] + * prng.rand(5.0..9.0) #=> between 5.0 and 9.0, including 9.0 + * prng.rand(5.0...9.0) #=> between 5.0 and 9.0, excluding 9.0 * * +begin+/+end+ of the range have to have subtract and add methods. * @@ -1107,7 +1107,7 @@ random_equal(VALUE self, VALUE other) /* * call-seq: - * rand(max=0) => number + * rand(max=0) -> number * * Converts <i>max</i> to an integer using max1 = * max<code>.to_i.abs</code>. If _max_ is +nil+ the result is zero, returns a |