Module: Sperm

Defined in:
lib/sperm.rb,
lib/sperm/version.rb,
lib/sperm/exceptions.rb,
lib/sperm/random_source.rb,
lib/sperm/random_permutations.rb

Overview

Sperm is an efficient random permutations generator.

Defined Under Namespace

Modules: Groups Classes: NoSuitableGroup, RandomPermutations, RandomSource

Constant Summary collapse

VERSION =
'0.1.1'

Class Method Summary collapse

Class Method Details

.rand(order) ⇒ Object



8
9
10
# File 'lib/sperm.rb', line 8

def self.rand(order)
  RandomPermutations.new(order).rand
end