Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Tmp
- def hello
- @random = Random.rand(100)
- puts "hello #{@random}"
- end
- def world
- puts "hello #{@random}"
- end
- end
- tmp = Tmp.new
- tmp.hello
- tmp.world
- tmp2 = Tmp.new
- tmp2.hello
- tmp2.world
- ##################################################
- # <===================OUTPUT===================> #
- # hello 37 #
- # hello 37 #
- # hello 82 #
- # hello 82 #
- ##################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement