mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* array.c: [DOC] Add more documents to shuffle! and shuffle.
Contributed by @JuanitoFatas [ci skip][fix GH-612] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									ff9c54a32d
								
							
						
					
					
						commit
						2091ccac88
					
				
					 2 changed files with 12 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,8 @@
 | 
			
		|||
Sat May 24 22:37:20 2014  SHIBATA Hiroshi  <shibata.hiroshi@gmail.com>
 | 
			
		||||
 | 
			
		||||
	* array.c: [DOC] Add more documents to shuffle! and shuffle.
 | 
			
		||||
	  Contributed by @JuanitoFatas [ci skip][fix GH-612]
 | 
			
		||||
 | 
			
		||||
Sat May 24 22:28:55 2014  SHIBATA Hiroshi  <shibata.hiroshi@gmail.com>
 | 
			
		||||
 | 
			
		||||
	* test/lib/minitest/.document: removed unused configuration.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										7
									
								
								array.c
									
										
									
									
									
								
							
							
						
						
									
										7
									
								
								array.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -4459,7 +4459,13 @@ static ID id_random;
 | 
			
		|||
 *
 | 
			
		||||
 *  Shuffles elements in +self+ in place.
 | 
			
		||||
 *
 | 
			
		||||
 *     a = [ 1, 2, 3 ]           #=> [1, 2, 3]
 | 
			
		||||
 *     a.shuffle!                #=> [2, 3, 1]
 | 
			
		||||
 *     a                         #=> [2, 3, 1]
 | 
			
		||||
 *
 | 
			
		||||
 *  The optional +rng+ argument will be used as the random number generator.
 | 
			
		||||
 *
 | 
			
		||||
 *     a.shuffle!(random: Random.new(1))  #=> [1, 3, 2]
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
static VALUE
 | 
			
		||||
| 
						 | 
				
			
			@ -4506,6 +4512,7 @@ rb_ary_shuffle_bang(int argc, VALUE *argv, VALUE ary)
 | 
			
		|||
 *
 | 
			
		||||
 *     a = [ 1, 2, 3 ]           #=> [1, 2, 3]
 | 
			
		||||
 *     a.shuffle                 #=> [2, 3, 1]
 | 
			
		||||
 *     a                         #=> [1, 2, 3]
 | 
			
		||||
 *
 | 
			
		||||
 *  The optional +rng+ argument will be used as the random number generator.
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue