sub closetohalf { my ($up, $low) = @_; $low + ($up - $low) * (0.4 + rand 0.2); } [download]
In reply to Re: subroutines for close to half by Anonymous Monk in thread subroutines for close to half by Aldebaran