From: Ronnie Collinson Date: 2012-02-17T17:54:03+09:00 Subject: Re: A better way? If the letters dont go higher then F, you could add 10 and convert to a hex (string) (random_insert + 10).to_s(16)