check for random number generator by compiling a test program

This feature check is indepenend of the compiler.