+ 1

Why output is 1? Pleass explain.

h = Hash.new{ -1 rand 1 } p h[1].to_i

1st Jun 2019, 12:49 PM
Umesh Kushwaha
Umesh Kushwaha - avatar
2 Respostas
+ 1
Tell me what you want to be shown I might help
18th Aug 2019, 7:23 AM
Alex_playz Kingdom
Alex_playz Kingdom - avatar
0
I went through this qus during sololearner chalange and I was not able to understand the answer thats why I asked here.☺
19th Aug 2019, 5:42 AM
Umesh Kushwaha
Umesh Kushwaha - avatar