lib/rubystats/probability_distribution.rb
#Returns random number(s) using subclass's get_rng method 
Returns random number(s) using subclass's get_rng method
Returns random number ( s ) using subclass ' s get_rng method
def rng(n=1)
      if n < 1
        return "Number of random numbers to return must be 1 or greater"
      end
      if (n > 1)
        rnd_vals = []
        for i in (0..n)
          rnd_vals[i] = get_rng()
        end
        return rnd_vals
      else
        return get_rng()
      end
    end
def rng ( n = 1 ) if n < 1 return "Number of random numbers to return must be 1 or greater" end if ( n > 1 ) rnd_vals = [ ] for i in ( 0 .. n ) rnd_vals [ i ] = get_rng ( ) end return rnd_vals else return get_rng ( ) end end
Returns random number(s) using subclass's get_rng method
Returns random number ( s ) using subclass ' s get_rng method
n
<not_specific>