I need help with the following question: Using JavaScript generate a list of 1,000 random numbers between 1 and 100, where none of the numbers contain the digit 6, then print the numbers & total count of each distinct number, sorted by total, then number in alternating asc/desc order, starting with asc. i.e.: Given the following random sequence “1, 58, 10, 13, 58, 4, 27, 3, 27, 32, 58, 1, 1, 58, 4, 1, 13, 13” Output: 3(1) 10(1) 32(1) 58(4) 1(4) 4(2) 13(3) 27(2)
I am trying to use Math.random() to generate a list of random numbers, but need help with the rest.
Aucun commentaire:
Enregistrer un commentaire