Bonjour à tous,

J'ai téléchargé un script sur un site internet, et ce site internet n'est plus accessible.
C'est un script qui tire des nombres au hasard et qui fonctionne plus.
J'aurai besoin d'un coup de pouce s.v.p. ; merci.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<script language="JavaScript">
<!--
//PLF- http://www.jejavascript.net/
function nb_aleatoire(nb)
{
while(nombre=0)
{
var nombre=Math.round(Math.random() * nb);
}
} 
//-->
</script> 
<script language="JavaScript">
<!--
function choix_auto()
{
//PLF- http://www.jejavascript.net/
tirage = new Array();
nombres="";
nbe= 7;
for (i=1 ;i<nbe ;i++)
{
nb_aleatoire(48);
tirage[i]= nombre;
for (t=1 ; t<i ;t++){
if (tirage[t]==nombre) 
{
i=i-1;
} 
}
 
for (i=1 ;i<nbe ;i++)
{
nombres= nombres+tirage[i]+" ";
}
}
document.form1.Numbers.value = nombres;
}
//-->
</script>