Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/rdgc/util/random_util.rb
Instance Method Summary collapse
Instance Method Details
#choice ⇒ Object
105 106 107 |
# File 'lib/rdgc/util/random_util.rb', line 105 def choice self.sample end |
#pickup! ⇒ Object
98 99 100 101 102 |
# File 'lib/rdgc/util/random_util.rb', line 98 def pickup! ret = self.choice self.delete(ret) ret end |