Class Choose::RandomMockRandomGenerator
In: lib/choose.rb
Parent: MockRandomGenerator

Methods

new  

Public Class methods

[Source]

# File lib/choose.rb, line 111
      def initialize ( n )
        tab_i = (0 .. n - 1).to_a.shuffle
        tab_f = []
        n.times { tab_f << Float.choose() }
        super(tab_i, tab_f)
      end

[Validate]