Skip to content

Instantly share code, notes, and snippets.

@balazspete
Created October 14, 2012 14:20
Show Gist options
  • Save balazspete/3888729 to your computer and use it in GitHub Desktop.
Save balazspete/3888729 to your computer and use it in GitHub Desktop.
class Node
attr_reader :e, :t
def initialize b, d, approx, t=nil
random_t = lambda {|min, max| Random.rand(max - min)+min }
@t = (t or random_t.call(-250, 250))
@e = nil
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment