add test for random.c