Alternate method to generate true/false?


#1

Could you also use Math.round(Math.random( )) to randomly generate 0 or 1?


#2

You should be able to.


#3

Thanks! It just seems more straightforward to me than Math.floor(Math.random()*2), and so I thought that maybe I was missing something


#4

Yup but i dont think they had taught it here so.....