JavaScript JavaScript Numbers The Math Object Random Number Challenge

I found another way to get random number

Math.floor((Math.random() * 6) + 1);

I found the treehouse video puzzling but i really like it, but i found the above to offer similar results. Slightly less code. Hope this help someone.

jasonj7 that is actually more code just by a few brackets.

1 Answer

thanks for the encouragement!