Thanks for the code. Unfortunately, I wasn't able to get it to compile either. I got the same errors even after I switched from Cocoa to Foundation:
[Linker error] undefined reference to 'WinMain@16'
ID returned 1 exit status
[Build Error] [pRNG.exe] Error 1
I see from your screenshots that you have clearly gotten something to compile, so you have it working with a project that consists of more than pRNG.h and pRNG.m, but can't get it to work with just those two? Also, when I create the project, does it have to have the same name as the .h file (that's what I did)?