Added random and hashed colour functions