in reply to Re: Re: Re: Re: Function over all letters in a string
in thread Function over all letters in a string

You would have a larger range of possible numbers with:
$string =~ s=(\w)= $1 x (1 - 1/log(rand)) =eg;