That Richard
Official Terrarian
So, first of all, hello to this funny little post! And if you read only the first line of text. No I am not asking, I'm giving the exact answer to the question!
One time as I was farming a Nazar in the dungeon, I thought: "What's the chance that I get a X% chance item to drop in 100 / X tries? (Like you have 0.5% chance to get an item, you would think that in 200 tries you would get it 100% - but we all know that is not the answer haha).
Then I made a little C++ program to test it.
Well here's the program: https://pastebin.com/C9iUp1Nb (it is "truly" random so it doesn't just spit the same output every time) - had to post a new link, old one had a few quirks
You can paste it into an Online C++ Compiler (http://cpp.sh/ for example) and then just hit run. (It takes time to calculate because it does 1000000 runs of the "drop" code that would happen in game)
You then enter the % chance to get an item. (Different percentages give different answers, ofc!) Have fun with this.
To find the answer, just run the program so you actually have to do something
Do it like 2 to 4 times so you can see it outputs the almost same number every time.
If you found an error in my thinking, go ahead and tell me I wont resist, haha
If you want the math, it's right below this post!
One time as I was farming a Nazar in the dungeon, I thought: "What's the chance that I get a X% chance item to drop in 100 / X tries? (Like you have 0.5% chance to get an item, you would think that in 200 tries you would get it 100% - but we all know that is not the answer haha).
Then I made a little C++ program to test it.
Well here's the program: https://pastebin.com/C9iUp1Nb (it is "truly" random so it doesn't just spit the same output every time) - had to post a new link, old one had a few quirks
You can paste it into an Online C++ Compiler (http://cpp.sh/ for example) and then just hit run. (It takes time to calculate because it does 1000000 runs of the "drop" code that would happen in game)
You then enter the % chance to get an item. (Different percentages give different answers, ofc!) Have fun with this.
To find the answer, just run the program so you actually have to do something
Do it like 2 to 4 times so you can see it outputs the almost same number every time.
If you found an error in my thinking, go ahead and tell me I wont resist, haha
If you want the math, it's right below this post!
Last edited: