Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- /*
- var haslo=prompt("podaj haslo");
- if(haslo.lenght<7)
- {
- alert("zbyt krotkie haslo");
- }
- var x = /^[0-9]{3}\&+[a-z]{3}$/
- var szuk = haslo.search(x);
- if(szuk==-1)
- {
- document.write("nie spelnia wymogow");
- }
- else document.write("spelnia wymogi");
- */
- //ZAD3
- var a = prompt("podaj a");
- var b = prompt("podaj b");
- var c = Math.floor(Math.random() * b) + 1;
- document.write(c);
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement