added code to test random number c