I want to create a 64 bit integer in ruby. I know you have a lot of time in Java, but I'm not sure how you do it in Ruby. Also, how many charecters are in a 64-bit number? Here is an example of what I'm talking about ... 123456789999.
@num = Random.rand(9000) + Random.rand(9000) + Random.rand(9000)
But I believe that this is very inefficient, and there should be a simpler and more concise way to do this.
Thanks!
source share