Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var x=Math.random();
- console.log(x);
- if(x<=0.5) {
- console.log("wypadł orzeł");
- x=Math.random();
- console.log(x);
- if(x<=0.5){
- console.log("wypadł orzeł");
- }
- else {
- console.log("wypadła reszka");
- }
- }
- else {
- console.log("wypadła reszka");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement