Update main.c

random changed