rand in awk
Finn Drablos
finnd%vax.runit.unit.uninett at NAC.NO
Tue Oct 24 00:28:00 AEST 1989
I try to install an utility under Irix 3.1D, using awk. However, I get
problems with rand() and srand(). For example
$awk '{ print rand() }'
awk: syntax error near line 1
awk: illegal statement near line 1
$awk '{ print rand(2.0) }'
2
2
Not very useful, really. Am I doing something wrong, or is this a bug ?
Is there anything I can do to make it work (except for implementing my
own random number generator) ?
==================
Finn Drablos PHONE +47 7 597710 FAX +47 7 597708
MR-Senteret, SINTEF MHS(EAN) : finnd at vax.runit.unit.uninett
N-7034 TRONDHEIM, NORWAY EARN/BITNET : drabloes at norunit
-----------------------------------------------------------------------
More information about the Comp.sys.sgi
mailing list