keeping things simple (hopefully)
December 15, 2007
Filed under: Uncategorized — Jason @ 8:47 pm

Needed something to generate random numeric strings that were 9 characters long


def random_numeric_string
	length = 1000000000
	(rand(length)+(length)).to_s[1..9]
end

If anyone has a better way, please let me know.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment