[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] How to get the seed in order to produce the next rand() o
From: |
arnold |
Subject: |
Re: [bug-gawk] How to get the seed in order to produce the next rand() output? |
Date: |
Tue, 13 Nov 2012 21:06:40 -0700 |
User-agent: |
Heirloom mailx 12.4 7/29/08 |
Peng Yu <address@hidden> wrote:
> Hi,
>
> Suppose that I run rand() for a number of time and the awk terminate.
> Then I start the awk program again and I want to get the results from
> rand() as if the program was not terminated. To do so, a seed is need.
> Does anybody know how to get the current seed of rand()? Thanks!
>
> --
> Regards,
> Peng
There is no way to get the current seed. YOu can use srand() to get the
starting seed.
Arnold