hi, that's the code i use in javascript to generate 4-digit number (for a number guessing game.): var val = Math.floor XXXXXXXXXXMath.random() * 9000); It generates 4 digit number but, I need every...


hi, that's the code i use in
javascript
to generate 4-digit number (for a number guessing game.):




var val = Math.floor(1000 + Math.random() * 9000);


It generates 4 digit number but,
I
 need every number to be used only for once such as (1234, 5680.. ; above code sometimes generates
1180,2254..)



Can you help me please ?




Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here