full ISO C99 support (random number generator)