Fix random with no tracks

Closes #10