Random button functionality and cleaner functions