in reply to Re^2: inclusive rand
in thread inclusive rand

You were clear and you are wrong to believe computer can produce any real numbers. (see also my update)

We can only approximate them with floats, e.g. you will never get a the real pi, just because for instance nobody can ever finish printing a number with an infinite amount of digits.

This means you can only operate on rational numbers with a chosen resolution.

update

OP changed text of Re^2: inclusive rand . I'm giving up.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Replies are listed 'Best First'.
Re^4: inclusive rand
by msh210 (Monk) on Mar 13, 2017 at 13:03 UTC

    Yes, but I changed it before the reply to it was posted. Sorry for the confusion.

    $_="msh210";$"=$\;@_=@{[split//,uc]}[2,0];$_="@_$\1";$\=$/;++$_[0]for$...1;print lc substr crypt($_,"@_"),1,6