Invizory/sperm

View on GitHub
lib/sperm.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'sperm/version'
require 'sperm/exceptions'
require 'sperm/random_permutations'

# Sperm is an efficient random permutations generator.
#
module Sperm
  def self.rand(order)
    RandomPermutations.new(order).rand
  end
end