Press space for a new color.
I didn't add in anything for the "minus tints or shades" part because I'm not sure how it translates when you're generating straight to rgb. Thanks also to the number 16777215. Technically this is the exact same method used at randomcolour.com