Create random.c

Add random feature