tests: Add pseudorandom number generator