Printed rand() and changed return value from main()