Right now the function to get a random sound generates the list of available sound files every time it's called. Storing this in some wider-scoped variable would improve efficiency.
Right now the function to get a random sound generates the list of available sound files every time it's called.
Storing this in some wider-scoped variable would improve efficiency.