Here's why my progress bars are inaccurate:<br><br>int totalProgress = srand(100, 1000);<br>int currentProgress = 0;<br>while(process.IsRunning()){<br>    progressBar.UpdateProgress(currentProgress);<br>    currentProgress++;<br>    if(currentProgress == totalProgress){<br>        currentProgress --;<br>    }<br>    thread.sleep(1000)<br>}