From: Dave Bass Date: 2008-12-30T20:03:58+09:00 Subject: Re: Options to generate small, kind of unique, human-readable tokens (like "V0cM9tnV") ? Generate a suitable random (or otherwise) integer and express in base 36: puts rand(36**6).to_s(36) Dave -- Posted via http://www.ruby-forum.com/.