Generating a pleasing colour palette

What this does is randomly choose RGB values that are bright and colourful, while not being primary colours. It gives the application a much nicer look than standard colours. Below is the code to choose the random colour: