Alternate method to generate true/false?


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


You should be able to.


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


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