Sha256: db8940f6cb99cb8a8b5dc4f27941587dd6256c8b4048985d017c551b4e39c5f7
Contents?: true
Size: 147 Bytes
Versions: 18
Compression:
Stored size: 147 Bytes
Contents
class Array def random self[Kernel.rand(size)] end def random_subset(len=2) rs = [] len.times { rs << random } rs end end
Version data entries
18 entries across 18 versions & 2 rubygems