ONLY use javascript random number creation.
Created
June 1, 2016 20:20
-
-
Save anilkay/e29aa618d1b9c1d814409fe7e11eff50 to your computer and use it in GitHub Desktop.
Random Number
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <link href="assets/css/bootstrap-responsive.css" rel="stylesheet"> | |
| <h1 class="" > Random Number Page </h1> | |
| <div class=col-md-2> | |
| <button id=bas class="btn btn-lg btn-primary btn-block"onclick="fo()" >Bas </button> </div> | |
| <br> | |
| <h5 style="color:white"> Sonuç</h5> | |
| <div text-align="left"> | |
| <p id="anka" style="font-size:100px" class=> </div> | |
| </p> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function fo() { | |
| var a=Math.random()*100; | |
| var yaz=Math.floor(a) | |
| document.getElementById("anka").innerHTML =yaz; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment