our project was creating using cocos2d on Mac to create iPhone app first. Now we would like to port it to Windows Phone. We have use Arc4Random in our iOS project that we cannot find in VC++ for windows phone. Am I missing a reference to do I need to use a different function for the same?
I tried including <math.h> with no luck. I noticed that in Cocos2d project in xCode arc4random is part of stdlib.h. I tried including that as well, since I did not see it in the file. neither of them did not work. I am hoping to use rand() to resolve this. if there is further solution, I can look into it as well.
This looks like a great solution. I have to try it yet. In the mean time we are using rand() instead. I do not know the difference between them. i guess one is more performant than other. As of now it is working as expected. We will update here if we find anything different.