NAHODNE CISLA (2)

ID
Nazov / Name:
Popis / Description:
Dlzka / Length:
Testovane pod / Tested under:

 

099
p099.html / p099.zip
Generator nahodnych cisel
986b
NN 4.04, IE 4.0

UKAZKA / CLICK HERE

Zdrojovy tvar / Source code:

<html> <head> <title> JavaScript DESTINATION - P099 </title> <script language="JavaScript"> <!-- function rnd(scale) { var dd=new Date(); return((Math.round(Math.abs(Math.sin(dd.getTime()))*8.71*scale)%scale)); } function rnd1() { var dd=new Date(); document.puk.win1.value=Math.abs(Math.sin(dd.getTime())); } function rnd2() { var dd=new Date(); document.puk.win2.value=Math.abs(Math.cos(dd.getTime())); } // --> </script> </head> <body> <center> <h1>Generator nahodnych cisel</h1> <form name="puk"> <input type="button" value=" Generuj " onclick="rnd1()"> <input type="text" name="win1" size="30"> <br> <input type="button" value=" Generuj " onclick="rnd2()"> <input type="text" name="win2" size="30"> <p> Mierka: <input type="text" name="scale" size="15"><br> <input type="button" value=" Generuj " onclick="document.puk.win3.value=rnd(document.puk.scale.value)"> <input type="text" name="win3" size="15"> </form> </center> </body> </html>
[ Navrat / BACK ]