I'm using this function to generate a random number:
However I get an error message saying "not an allowed type", any ideas how to fix?Code:int flip (); int flip () { return 0;( (srand ( time (NULL) ) )%2); }
I have included time.h by the way.
Thanks