Bug #3745 ยป array-shuffle-doc.patch
| array.c | ||
|---|---|---|
|
*
|
||
|
* If +rng+ is given, it will be used as the random number generator.
|
||
|
*
|
||
|
* a.shuffle(Random.new(1)) #=> [1, 3, 2]
|
||
|
* a.shuffle(random: Random.new(1)) #=> [1, 3, 2]
|
||
|
*/
|
||
|
static VALUE
|
||