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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2256e-339b8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2256e-339b8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?