Corrected file type for Emacs
Added a function to randomple suffle data