added resetAverageFramesAvailable(), removed if (randFloat...)