Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> rand() and RAND_MAX are defined by ANSI C, random() is a BSD-ism. I
> suggest you use the former.
Unfortunately, except on a few platforms like Linux, the typical
rand() implementation is vastly inferior to the typical random()
implementation. BSD wouldn't have bothered to roll their own if
the older code hadn't been so godawful. But unless you are using
glibc, you probably have a bug-compatible rand().
regards, tom lane