Optionally use random() for random numbers

Random() is another standardized pseudo-random number generator that can
be used instead of the default rand(). Let users optionally select it at
build time.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>