How to calculate estimated percentage?
No.13435491 ViewReplyOriginalReport
Quoted By: >>13436303 >>13436308
Hey guys I have a problem I'm trying to work out. I'm making a script to populate my database and I'd like to get the estimated percentage of completion so I'll have an idea of how long it will take.
So imagine I have an array of boards. For each board, I loop through each user. Where things get tricky is that now - I generate a random number between 1 and 5 - and make that many threads(different number for each user). then, for each thread, I generate another random number (this time between 1 and 10) and create that many posts(different for each thread).
There should be a way to solve this right? I'm really REALLY stupid when it comes to math.
So imagine I have an array of boards. For each board, I loop through each user. Where things get tricky is that now - I generate a random number between 1 and 5 - and make that many threads(different number for each user). then, for each thread, I generate another random number (this time between 1 and 10) and create that many posts(different for each thread).
There should be a way to solve this right? I'm really REALLY stupid when it comes to math.