samedi 21 mars 2015

.Random on an array is always pulling false

I am testing in irb and everytime I require my file is is always returning false.



class Weather
def stormy
[false, true,].random
end
end


I am unsure if it is my code or the way I am requiring file in irb. can anyone help Thank you





Aucun commentaire:

Enregistrer un commentaire