How to set the proper color in Color Picker?

this is not solved… and it’s driving me crazy… I’m doing something as simple as having the engine randomly pick a value… and the final color is not right… and is severely limited. A photoshop hex number is not helpful as I’m generating rgb values at random… unless I can randomly generate hex values… IS there a fix for this?

I mean there are literally millions of color combinations and all that ever appear are 8 or so solid 255 colors!