random file selection is working