jaytea commented on a Page, Random page color  -  Sep 25, 2011

you're using rand(1,100000) to generate a random integer RGB value whereas the range of possible values is much larger: 0 to 2^24-1 = 16777215.

thus if you want to select from the range of all possible RGB values, you should use rand(0, 16777215)

edit: is #N a valid colour if N is expressed in base10?

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.