Once, my teacher taught me to use randomize()
and random()
function for generating pseudorandom numbers in C++ Builder. Now I prefer working in VS
srand()
is the C Standard library implementation for seeding the (pseudo) random number generator. rand()
is the (pseudo) random number generator in the C Standard Library.
C++ has implemented a newer (pseudo) random number generator in the
header file, which has a variety of different engines to use: http://en.cppreference.com/w/cpp/numeric/random