Random sampling of files with R