JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" id="go" value="tirage" />
<div id="res"></div>

JavaScript

var nbDispo = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 25, 50, 75, 100];

function tirage(n){
  var plaque = new Array();
    for (i=0;i<n;i++){
        if (nbDispo.length==0) {break;}
        nbDispo.sort(randsort);
        plaque.push(nbDispo.pop())
        
        
    }
    return plaque;
}

function randsort(){
    return (Math.random()*2 & 1)?-1:1;
}

function loto(){
nbDispo = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 25, 50, 75, 100];    
document.getElementById('res').innerHTML= tirage(6).join(', ')+'<br/>';
document.getElementById('res').innerHTML+= tirage(6).join(', ')+'<br/>';
document.getElementById('res').innerHTML+= tirage(6).join(', ')+'<br/>';
}

document.getElementById('go').addEventListener ("click",loto);