perlfaq4

[email protected] (Tomi Parviainen)
Newsgroups perl.perlfaq.workers
Message-ID <[email protected]>
Hi,

perlfaq4 - Data Manipulation
Data: Numbers
 o Why aren't my random numbers random?

Example shows that the random number generator needs to be seed using command:

BEGIN { srand() if $[ < 5.004 }

however the variable '$[' should be '$]'

Regards,
 - Tomi

T-Pad - Perl-script editor with syntax highlighting
Download from: http://www.sunpoint.net/~tparviai/
-
Sunpoint.net ilmoittaa:

Sunpoint.net tarjoaa kaikille rekisteröityneille käyttäjilleen kuukausimaksuttoman Internet -yhteyden (pvm).
http://www.sunpoint.net/SunAds/click.htm?mode=footer&id=71&jump=http%3A%2F%2Fwww.sunpoint.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.