var machine_coins = 1000 var player_coins = 100 function nbAlea() { return Math.floor(Math.random() * 10) }