Switch case statement
so i am building a bot for discord in javascript and i want to make it so that everytime a run a command line /unkown1563 that the bot will reply back with one of 10 options but everytime i start it up it always runs only one of the lines of codes and never swtitches between the other ones can anyone help me fix the issue thx. code is proved below and if you need anything more information please contact me here var prefix='/' var x=Math.floor(Math.random(1,100)*10); if(message.content.startsWith(prefix + 'Unknown1563')) { switch (x) { case (x=0): message.channel.sendMessage('testing case 0'); break; case (x=1): message.channel.sendMessage('testing case 1'); break; case (x=2): message.channel.sendMessage('testing case 2'); break; case (x=3): message.channel.sendMessage('testing case 3'); break; case (x=4): message.channel.sendMessage('testing case 4'); break; case (x=5): message.channel.sendMessage('testing case 5'); break; case (x=6): message.channel.sendMessage('testing case 6'); break; case (x=7): message.channel.sendMessage('testing case 7'); break; case (x=8): message.channel.sendMessage('testing case 8'); break; case (x=9): message.channel.sendMessage('testing case 9'); break; default: message.channel.sendMessage('default message'); }} for testing change all (message.channel.sendMessage) to document.write and remove the if statement