With a 0.006% chance, The 2nd place with 0.03% chance The 3rd place with a 0.2% chance The rest is blank
I don't know how to implement this product when there is a product like this.
Also, how can I implement it to reduce the margin of error without errors?
Please give me a hint, search keyword, reference link, or blog.
algorithm
Place numbers from 1 to 100000 in the list or DB. The randomly selected values are then thrown to the user one by one, and the selected numbers are displayed as used numbers. If you use the list, you can take it off the list, and if you use the DB, you can mark it in the column. There must be many ways.
And
Wouldn't this work?
Put 1 in an array of 100000, 6 in 2, 30 in 3, 200 in a row, and mix the rest with the default value of 0, shuffle function, etc. If a random number is selected from 1 to 100000 and the number is selected as the key value of the array, it is 1st place, 2nd place on 2nd place... I've implemented it in this way and used it for events, but there was not much error.
618 GDB gets version error when attempting to debug with the Presense SDK (IDE)
585 PHP ssh2_scp_send fails to send files as intended
579 Understanding How to Configure Google API Key
925 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
626 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2024 OneMinuteCode. All rights reserved.