mercredi 24 janvier 2018

Why does random() not work in windows?

Why does the C++ random() command not work on Windows? I made a running program with the random() command on Ubuntu. This command generates a random integer. Online there isn't much to find about this command. What confuses me is that the code is not altered in any way, and the same program is used on both operating systems to run the code.

Is there any structural difference in these 2 operating systems that prohibits the command from working on one of them?




Aucun commentaire:

Enregistrer un commentaire