several fixes for new basic compiler

This commit is contained in:
ceriel
1988-07-01 17:30:06 +00:00
parent 4d9965a774
commit a693896a67
5 changed files with 35 additions and 13 deletions

View File

@@ -3,23 +3,25 @@
_randomi()
{
int i;
double f;
_setchan(-1);
printf("Random number seed (-32768 to 32767) ? ");
_readint(&i);
f=i;
_setrand(f);
_setrand(i);
}
_setrand(f)
double f;
{
_setrand(i)
int i;
i=f;
{
srand(i);
}
double _rnd(d) double d;
{
double f; f= (int) rand();
return(f/32767.0);
return(f/
#if EM_WSIZE == 4
2147483647.0
#else
32767.0
#endif
);
}