How can we draw numbers on two Cells in Javascript and the numbers cannot be equal?

Asked

Viewed 14 times

0

I’m like a doubt. I created two cells in html with a button and did Math.Random to draw numbers from 1 to 10 in these two cells, only I don’t want equal numbers to appear, there can never be equal numbers, td since pressing the button has to generate different numbers between 1 and 10. Can someone help us? Obgd

  • Hello Ailton, welcome to the site. It is important [Edit] and add a [mcve] of the problem (DO NOT delete and DO NOT repeat the question), with a step by step of what has already done and explain clearly and objectively and then wait for the reopening process (which will be evaluated by other users). To better enjoy the site, understand and avoid closures is worth reading the Stack Overflow Survival Guide in English. Thank you for understanding.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.