CISLA LOTERIE

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

 

032
p032.html / p032.zip
Nahodne vygenereju cisla loterie
886b
NN 4.04, IE 4.0

UKAZKA / CLICK HERE

Zdrojovy tvar / Source code:

<html> <head> <title> JavaScript DESTINATION - P032 </title> </head> <body> <h2>Nahodne cisla loterie: </font> </center> <script language="JavaScript"> <!-- numb = new Array(6); var Different; for (var i = 0; i < 6; i++) { Different = false; while (Different == false) { Different = true; numb[i] = Math.floor(Math.random() * 49) + 1; for (j = 0; j < 6; j++) { if ((numb[i] == numb[j]) && (i != j)) { Different = false; } } } } document.write('<font color=000080 size=+3>' + numb[0] + '&nbsp;' + '<font color=993300 size=+3>' + numb[1] + '&nbsp;' + '<font color=black size=+3>' + numb[2] + '&nbsp;' + '<font color=green size=+3>' + numb[3] + '&nbsp;' + '<font color=red size=+3>' + '&nbsp;' + numb[4] + '<font color=purple size=+3>' + '&nbsp;' + numb[5] + '<//font>') // --> </script> </body> </html>
[ Navrat / BACK ]