in reply to Re: random number with range
in thread random number with range

ok, that works , but why you add +1 in the end? i see that without it, the generator does not generate full lenght( te top number never apiers) but with +1 its all right, where does the 1 goes that we need manually add it?

Replies are listed 'Best First'.
Re^3: random number with range
by Your Mother (Archbishop) on Apr 05, 2020 at 02:39 UTC

    This might explain; rand(1) can never produce 1 for example, so–

    perl -E 'say int 0.999999999' 0