#: 5595 S3/Languages
27-Jul-90 01:18:40
Sb: #5538-Clib docs
Fm: Bob van der Poel 76510,2203
To: Mark Griffith 76070,41
Mark, thanks for the additional comments on rand(). The problem is that
according to the recent docs you uploaded (as well as my original docs for
Carl's library) the syntax for rand() is given as rand(sf). Also, there is no
example in the docs (I'm looking at the page titled "math").
By the way, if a range is needed it is simple enought to do using the modulus
operator. For example, to get a random number between 1 and sf just do
something like:
int n;
n=(rand()%sf)+1;
Also, the way the function works is in agreement with other 'C' library info I
have.
Anyway, thanks again for the excellent job on the new docs. Having the whole
works in one manual is very nice.
|