Added test for generating random values