samedi 8 avril 2017

mélange pro

 

 

 


<script>
function myFunction() {
for (var i = 0; i < 1; i++) {
    var randomString = new Array ();
    randomString[0] = "Le pompier";
    randomString[1] = "Le boucher";
    randomString[2] = "La bibliothécaire";
    randomString[3] = "La boulangère";
    randomString[4] = "Le photographe";
    randomString[5] = "Le chirurgien";
    randomString[6] = "La fleuriste";
    randomString[7] = "La pianiste";
    randomString[8] = "Le facteur";
    var j = Math.floor(8*Math.random());
    document.getElementById('ph1').innerHTML = randomString[j];
}
for (var i = 0; i < 1; i++) {
    var randomString = new Array ();
    randomString[0] = "a éteint";
    randomString[1] = "a découpé";
    randomString[2] = "a rangé";
    randomString[3] = "a cuit";
    randomString[4] = "a développé";
    randomString[5] = "a ouvert";
    randomString[6] = "a coupé";
    randomString[7] = "a joué";
    randomString[8] = "a distribué";
    var j = Math.floor(8*Math.random());
    document.getElementById('ph2').innerHTML = randomString[j];
}

for (var i = 0; i < 1; i++) {
    var randomString = new Array ();
    randomString[0] = "le feu";
    randomString[1] = "la viande";
    randomString[2] = "le livre";
    randomString[3] = "le pain";
    randomString[4] = "la photo";
    randomString[5] = "le patient";
    randomString[6] = "les fleurs";
    randomString[7] = "des notes";
    randomString[8] = "le courrier";
    var j = Math.floor(8*Math.random());
    document.getElementById('ph3').innerHTML = randomString[j];
}}
</script>

<p id="ph1">&nbsp;</p>
<p id="ph2">&nbsp;</p>
<p id="ph3">&nbsp;</p>

<button onclick="myFunction()">Click me</button>