Guest User

Untitled

a guest
Nov 18th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. var tru=0,fal=0; for(var i = 0; i < 100; i++){ if(parseInt(Math.random()*100)%2 == true) { tru++; } else {fal++;} } console.log("true: "+tru+", false: "+fal);
Add Comment
Please, Sign In to add comment