Random file not working with sub