Yes, indeed. If you're randomly generating colours and you want to evenly cover the {0,1,...,255} integer space, then generate a random integer in that range directly, or truncate a random float in [0,256). Generating a random float in [0,1) and converting it afterwards, then complaining you're not getting enough 0 or 255 is silly.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
replies: