include cstdio for srand