Amiable WolfOriginal postFeb 15, 2022Here is the code to generate a random number between 1 and 10: $(eval Math.floor((Math.random() * 10) + 1))How would I alter this so that it loops and picks a random number between 1 and 10 over and over again until it spits out 50 results.
Quirky FoxFeb 15, 2022This should do what you want$(eval x=``;for(a=0;a<50;a++){y=Math.floor(Math.random()*10)+1;x+=y+` `}x)
Quirky FoxFeb 20, 2022Yes that would be possible but to be clear that would only be 10 results not 50 or do you mean not multiple of the same numbers.