I'm trying to port some pseudo-random number generating functions from Linux/Unix's <stdlib.h> to windows. It seems to be working all right, but I'd like to know if the numbers I'm generating are the same on the original platform - given the same seed(s).
So, if there are any Linux/Unix users out there, and you'd like to help me with this little experiment, compile the following program and let me know which values are printed for the following seeds:
I'm on my mobile right now so I couldn't do it myself ,although you can do it yourself using any of online compilers available :coliru.stacked-crooked.com , code pad, ideone ... they all use GCC .