Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
nassimm
· 3y ago · 0 comments
Math.random() generates a decimal that can be 0 but is less than 1, so when multiplied by 6 the range is 0-5.99999, which is then rounded down.
Comments
No comments yet.
Better HN