Python has a whrandom or something like that and I would like to create 
   a random password generator at work in Ruby instead. The Python goes 
something like this:

import string
import whrandom

def generatePassword(minlen=5, maxlen=10):
	chars = string.letters + string.digits
	passwd = ""
	
	# determine password size
	passwd_size = whrandom.randint(minlen, maxlen)

	for x in range(passwd_size):
		# choose a random alpha-numeric character
		passwd += whrandom.choice(chars)

	return passwd

print generatePassword()