random pick from a set of files in mac emulation