From: Wild Karl-Heinz Date: 2002-10-31T05:01:54+09:00 Subject: Re: Please help me modify this... In message "Please help me modify this..." on 30.10.2002, Peter Hickman writes: PH> class Password PH> ALPHABET='qwertyQWERTY123456' PH> SHORT=6 PH> MEDIUM=12 PH> LONG=18 PH> def Password.create(length=8, strength=MEDIUM) PH> password = '' PH> (0...length).times { password << ALPHABET[rand(strength)] } 1.upto( length ) { password << ALPHABET[rand(strength)] } PH> return password PH> end PH> end -- Mit freundlichen Gruessen, Wild Karl-Heinz kh.wild at wicom.li