25&&$valeurDe<=50; $gemme[0]=$gemmetype2[$type=rand(0,count($gemmetype2)-1)]; $gemme[1]=rand(2,8)*10; break; case $valeurDe>=51&&$valeurDe<=70; $gemme[0]=$gemmetype3[$type=rand(0,count($gemmetype3)-1)]; $gemme[1]=rand(4,16)*10; break; case $valeurDe>=71&&$valeurDe<=90; $gemme[0]=$gemmetype4[$type=rand(0,count($gemmetype4)-1)]; $gemme[1]=rand(2,8)*100; break; case $valeurDe>=91&&$valeurDe<=99; $gemme[0]=$gemmetype5[$type=rand(0,count($gemmetype5)-1)]; $gemme[1]=rand(4,16)*100; break; case $valeurDe==100; $gemme[0]=$gemmetype6[$type=rand(0,count($gemmetype6)-1)]; $gemme[1]=rand(2,8)*1000; break; } return $gemme; } ?>