Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: inclusive rand

by LanX (Saint)
on Mar 13, 2017 at 12:52 UTC ( [id://1184409]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1184409]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2024-03-28 19:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found