Take 10 numbers randomly from 0 to 15, and the 10 numbers cannot be the same

as in the question, 10 numbers are randomly selected from 1 to 16, and the 10 numbers cannot be the same. Want to detailed code and ideas, this part is really not good, thank you

Mar.03,2021

provides several ideas:
(1) scramble the array containing N numbers, and then select the first 10 numbers.
(2) put the number obtained each time into the HashSet, to determine whether it exists in the Set the next time it gets a number, until the end when the size of the Set is 10:00.

  • Web side reads IC card information

    recently, I have done a project to read IC card information on the browser side. Now I have a customer s plug and play IC card reader. Shenzhen Minghua products have no clue. I don t know how to call the web end. Which god can give some advice ...

    Jun.21,2022
Menu