added function to generate random colours