Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: generate random number without using any built in function in perl?

by InfiniteSilence (Curate)
on May 08, 2013 at 20:21 UTC ( [id://1032672]=note: print w/replies, xml ) Need Help??


in reply to generate random number without using any built in function in perl?

This is probably bad if you don't have an Internet connection, but oh well..

perl -MHTML::TreeBuilder -e 'use LWP::Simple; my $page = get(qq|http:/ +/www.random.org/integers/?num=100&min=1&max=100&col=5&base=10&format= +html&rnd=new|); my $parser = HTML::TreeBuilder->new_from_content($pag +e); print $parser->look_down(qq|class|,qq|data|)->as_text;'

Celebrate Intellectual Diversity

  • Comment on Re: generate random number without using any built in function in perl?
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-18 04:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found