Another rand/shuffle ,formatting

Add another function, rand(), to shuffle the notes list.
Improved indentation in functions