M
M
Maqsat Batyrqul2016-01-19 21:46:35
C++ / C#
Maqsat Batyrqul, 2016-01-19 21:46:35

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

1 answer(s)
M
MiiNiPaa, 2016-01-20
@Maqsat

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 question

Ask a Question

731 491 924 answers to any question