Test for random numbers using shared libraries