Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by InfiniteSilence (Curate)
on May 08, 2013 at 20:21 UTC ( #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
Node Status?
node history
Node Type: note [id://1032672]
help
Chatterbox?
[marto]: This won't take till Summer to complete I hope ;)
[Discipulus]: i hope too, vacuum cleaner permitting, 2-3 afternoon to build. Or is the 1:1 serie? ;=)
[Tanktalus]: Sure, no one is active for hours and hours in the cb, so I go to upgrade the db, and then someone is active. Sheesh :)
[Discipulus]: anyway poppins probably died with the last night cold. But is not normal to see them in dec. they must pop in April
NodeReaper eyes the thorns in the side
Discipulus : the party puller!
[Discipulus]: I was trying to solve this but i'm not. my regex-fu is stuck at primary school

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2017-12-18 21:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (498 votes). Check out past polls.

    Notices?