Gaz Wilson wrote:
> Hi all!
>
> I am having a very odd problem, which has been going on for ages:
>
> Many many months ago, I wrote a small program to generate a random
> number based on the number of files in a directory, the aim of the
> program is basically a random background generator - all
Rob Anderson wrote:
> Hi Guys,
>
> According to my bookshelf, from 5.004 onwards srand uses a seed that's
> "that's reasonably difficult to guess". Prior to that, it used time(). It
> does seem as if the seed it being set the as the same value each time. Could
> your program be being cached some wh
Hi Guys,
According to my bookshelf, from 5.004 onwards srand uses a seed that's
"that's reasonably difficult to guess". Prior to that, it used time(). It
does seem as if the seed it being set the as the same value each time. Could
your program be being cached some where?
Otherwise a suggestion fo
Stefan Johnson wrote:
> I know some people may complain and say I don't know what
> I'm talking about, but I read somewhere recently (while
> working on a dice function for my IRC bot) that "srand"
> is no longer necessary. You might try removing that line
> from your code and see what errors you
Stefan Johnson wrote:
> I know some people may complain and say I don't know what
> I'm talking about, but I read somewhere recently (while
> working on a dice function for my IRC bot) that "srand"
> is no longer necessary.
On the contrary, I'm sure you know what you're talking about
Stefan, and y
I know some people may complain and say I don't know what
I'm talking about, but I read somewhere recently (while
working on a dice function for my IRC bot) that "srand"
is no longer necessary. You might try removing that line
from your code and see what errors you get (I doubt it
will fix the pro
Hi Sushil,
perldoc -f rand
You can also look at the Math::Random and Math::TrulyRandom modules on the
CPAN.
Cheers,
Kevin
On Tue, Apr 24, 2001 at 02:58:16PM -0700, sushil ([EMAIL PROTECTED]) spew-ed forth:
> Hi ,
>
> Is there any one who can help me make a randon numer generator
> Any help wi