Korvin commented on a Page, Random page color  -  Sep 30, 2011

He did.
Get a random number from 0 to 4294967295 (The maximum number that can be represented in hexidecimal representations) then convert it to hex using the dechex() function.

http://php.net/manual/en/function.dechex.php

 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.