EUROMILLIONS génération de numeros et etoiles

IGUANE59 Messages postés 44 Statut Membre -  
 pas admis -
Bonjour,

Les amis, je cherche à écrire un script en PHP pour générer un nombre de grilles x avec 5 numeros sur 50 tous differents bien sûr et deux etoiles de 1 à 9 (sachant que les couples d'étoiles sont aux nombres de 36).

Merci au amateurs de systèmes en tous genres pour l'alea et le hazard.

--
Merci et bonne chance!

1 réponse

  1. pas admis
     
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
    <TITLE></TITLE>
    <META NAME="GENERATOR" CONTENT="OpenOffice.org 3.2 (Unix/chrome)">
    <META NAME="AUTHOR" CONTENT="franck ">
    <META NAME="CREATED" CONTENT="20111203;9091200">
    <META NAME="CHANGEDBY" CONTENT="franck ">
    <META NAME="CHANGED" CONTENT="20111203;9110800">
    </HEAD>

    <script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-17139212-6']);
    _gaq.push(['_trackPageview']);

    (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();

    </script>

    <BODY LANG="fr-FR" DIR="LTR" background="rmg/Capture.png">
    <FORM NAME="Formulaire">

    <SPAN CLASS="sd-abs-pos" STYLE="position: absolute; top: 1.26cm; left: 4.4cm; width: 66px">
    <a href="tableau.pdf" ><IMG SRC="rmg/f8.gif" NAME="images1" WIDTH=666 HEIGHT=380 BORDER=2"></a>
    </SPAN>

    <SPAN CLASS="sd-abs-pos" STYLE="position: absolute; top: 1.26cm; left: 22cm; width: 66px">
    <IMG SRC="rmg/f2.gif" NAME="images1" WIDTH=120 HEIGHT=380 BORDER=0 onclick="auto1()">
    </SPAN>

    <SPAN CLASS="sd-abs-pos" STYLE="position: absolute; top: 1.26cm; left: 0.2cm; width: 66px">
    <IMG SRC="rmg/f13.gif" NAME="images1" WIDTH=145 HEIGHT=380 BORDER=0 onclick="auto()">
    </SPAN>

    <P><INPUT TYPE=BUTTON NAME="Bouton1" VALUE="Bouton" STYLE="position: absolute; top: 8cm; left: 12cm; width: 2.97cm; height: 0.61cm" onclick="tirage()">

    <INPUT TYPE=TEXT NAME="Z1" SIZE=37 STYLE="position: absolute; top: 9cm; left: 10.2cm; width: 4.8cm; height: 1.2cm" >

    <INPUT TYPE=TEXT NAME="Z2" SIZE=37 STYLE="position: absolute; top: 9cm; left: 14.99cm; width: 2cm; height: 1.2cm; background: #ffff00" >

    <INPUT TYPE=TEXT NAME="c1" SIZE=3 value="21" STYLE="position: absolute; top: 12cm; left: 3cm; width: 2cm; height: 1cm" >

    <INPUT TYPE=TEXT NAME="c2" SIZE=3 value="12" STYLE="position: absolute; top: 12cm; left: 6cm; width: 2cm; height: 1cm" >

    <INPUT TYPE=TEXT NAME="c3" SIZE=3 value="47" STYLE="position: absolute; top: 12cm; left: 9cm; width: 2cm; height: 1cm" >

    <INPUT TYPE=TEXT NAME="c4" SIZE=3 value="44" STYLE="position: absolute; top: 12cm; left: 12cm; width: 2cm; height: 1cm" >

    <INPUT TYPE=TEXT NAME="c5" SIZE=3 value="29" STYLE="position: absolute; top: 12cm; left: 15cm; width: 2cm; height: 1cm" >

    <INPUT TYPE=TEXT NAME="c6" SIZE=3 value="2" STYLE="position: absolute; top: 12cm; left: 18cm; width: 2cm; height: 1cm; background: #ffff00" >

    <INPUT TYPE=TEXT NAME="c7" SIZE=3 value="1" STYLE="position: absolute; top: 12cm; left: 21cm; width: 2cm; height: 1cm; background: #ffff00">

    <INPUT TYPE=BUTTON NAME="bonum" SIZE=20 value="bon numeros" STYLE="position: absolute; top: 2.2cm; left: 12cm; width: 3cm; height: 1cm " onclick="humour()">

    </P>
    </FORM>
    <script "text/Javascript">
    alert("Avertissement \n clique bon numéros conduit à des vidéos exterieur. \n -cases blanche numéros de 1 à 50. \n -cases jaune numéros de 1 à 11 .\n -ATTENTION: risque de blocage sur \n recherche automatique si les 7 cases son erroné \n(clique sur le personnage voyante pour 5 numéros ou homme en caleçon pour 6 numéros ) \n -Le temps de recherche automatique est imprécis et bloque l'image durée plusieurs secondes ou minutes. \n simple tirage clique sur bouton");
    var prx= 0;
    var prx1= 2;
    var res = prx+prx1;

    function tirage()
    {
    do {
    var F1 =Math.round(Math.random()*50);
    } while ( F1 < 1 );
    do {
    var F2 =Math.round(Math.random()*50);
    } while ( F2 < 1 || F2 == F1 );
    do {
    var F3 =Math.round(Math.random()*50);
    } while ( F3 < 1 || F3 == F1 || F3 == F2 );
    do {
    var F4 =Math.round(Math.random()*50);
    } while ( F4 < 1 || F4 == F1 || F4 == F2 || F4 == F3);
    do {
    var F5 =Math.round(Math.random()*50);
    } while ( F5 < 1 || F5 == F1 || F5 == F2 || F5 == F3 || F5 == F4 );

    do {
    var F6 =Math.round(Math.random()*11);
    } while ( F6 < 1 );
    do {
    var F7 =Math.round(Math.random()*11);
    } while ( F7 < 1 || F6 == F7);

    document.forms.Formulaire.Z1.value="Tirage : " +F1+" "+F2+" "+F3+" "+F4+" "+F5;

    document.forms.Formulaire.Z2.value=" "+F6+" "+F7;

    document.forms.Formulaire.Bouton1.value= res+" euros ";
    res = res+2;

    bonum= 0;

    var num1 = document.forms.Formulaire.c1.value;
    var num2 = document.forms.Formulaire.c2.value;
    var num3 = document.forms.Formulaire.c3.value;
    var num4 = document.forms.Formulaire.c4.value;
    var num5 = document.forms.Formulaire.c5.value;

    var num6 = document.forms.Formulaire.c6.value;
    var num7 = document.forms.Formulaire.c7.value;

    if (num1 == F1 || num1 == F2 || num1 == F3 || num1 == F4 || num1 == F5)
    {
    bonum++;
    }

    if (num2 == F1 || num2 == F2 || num2 == F3 || num2 == F4 || num2 == F5)
    {
    bonum++;
    }

    if (num3 == F1 || num3 == F2 || num3 == F3 || num3 == F4 || num3 == F5)
    {
    bonum++;
    }

    if (num4 == F1 || num4 == F2 || num4 == F3 || num4 == F4 || num4 == F5)
    {
    bonum++;
    }

    if (num5 == F1 || num5 == F2 || num5 == F3 || num5 == F4 || num5 == F5)
    {
    bonum++;
    }

    if (num6 == F6 || num6 == F7 )
    {
    bonum++;
    }

    if (num7 == F6 || num7 == F7 )
    {
    bonum++;
    }

    document.forms.Formulaire.bonum.value= bonum;

    }

    function humour()
    {

    if (bonum == 0)
    {
    window.location.href="http://youtu.be/BMpCSNF6yig";
    }

    if (bonum == 1)
    {
    window.location.href="http://youtu.be/3DjG_KEUc-w";
    }

    if (bonum == 2)
    {
    window.location.href="http://youtu.be/yYR_uGWekio";
    }

    if (bonum == 3)
    {
    window.location.href="http://youtu.be/FzCkt5wMAng";
    }

    if (bonum == 4)
    {
    window.location.href="http://youtu.be/hn40RYGzJeE";
    }

    if (bonum == 5)
    {
    window.location.href="http://youtu.be/dxTnRxUVzSo";
    }

    if (bonum == 6)
    {
    window.location.href="http://youtu.be/ASKGBT4ASds";
    }

    if (bonum == 7)
    {
    window.location.href="http://youtu.be/LZYxEZrRdKQ";
    }

    }

    function auto()
    {

    do
    {

    tirage();

    } while(bonum < 5);// tirage auto nbre de numéros de 1 à 7

    }

    function auto1()
    {

    do
    {

    tirage();

    } while(bonum < 6);// tirage auto nbre de numéros de 1 à 7

    }

    //usage prive et logo prevention sur le resulta des gains:( img f2.gif personage fictif commun sans raprochement voulu du reel).
    /* traiter avec un langage javascript.
    si cette page n'est pas une solution , elle peu devenir le probleme insoluble d' un resulta limiter en moyen et en temps sur les persones a budget non reconu ou trop soliciter...
    -texte en cours de traitement mis en place des mots non définie suivant évolution des évenements!
    Usage priver copyright or left version original TAG: BUdGet & CAF ART.
    */
    </script>
    -1
    1. pas admis
       
      ffranck @ live . fr script de moi
      0