I'm trying to run a program that outputs some number, but I keep running across one error. Once the program finishes, it automatically shuts down. This is what shows:
Loaded 'C:\WINDOWS\SYSTEM\KERNEL32.DLL', no matching symbolic information found.
The thread 0xFFEDAB41 has exited with code 4343904 (0x424860).
The program 'C:\My Documents\...SlotMachineM2.exe' has exited with code 4343904 (0x424860).
My program is here. I'd appreciate any help.

P.S. The comments are because my teacher requires them. This is my first time experimenting with multiple functions, arrays, and most of the stuff like that.