module RMatrix::Random::ClassMethods

Public Instance Methods

binomial() click to toggle source
# File lib/rmatrix/random.rb, line 18
def binomial
end
normal() click to toggle source
# File lib/rmatrix/random.rb, line 4
def normal
end
uniform(n=10,low: 0.0,high: 1.0) click to toggle source
# File lib/rmatrix/random.rb, line 7
def uniform(n=10,low: 0.0,high: 1.0)
  M.blank(columns: n).generate do
    ::Random.rand(low..high.to_f)
  end
end