home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QBasic & Borland Pascal & C
/
Delphi5.iso
/
C
/
Samples
/
C-SSP.ARJ
/
STRNUM.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Text File
|
1984-07-24
|
295 b
|
18 lines
strnum(r)
/*this subroutine generates a sequence of numbers which are*/
/*randomly and uniformly distributed over the unit interval.*/
float *r;
{
int ir;
float p1;
p1 = *r * 317.;
ir = p1;
*r = p1 - ir;
}