Fixed an exception when the random file was not created, a random file
is now created for each predicate count