Answer the question
In order to leave comments, you need to log in
Why doesn't randomize() and random() work on Visual Studio?
I am learning C++. On the book I saw these functions I wanted to test on Visual Studio 2013 but display an error error C3861: 'random': identifier not found
.
That being said, rand() works just fine.
Answer the question
In order to leave comments, you need to log in
There are no randomize() and random() functions in C++. Most likely, the book uses the Borland compiler, which is outdated in the last millennium, likes to use Pascal's libraries and APIs, and does not follow the standard.
There is also the random() function in the POSIX standard, which is used mainly on Unix-like systems.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question