title: What difference between rand() and random() functions?
body: <p>Once, my teacher taught me to use <code>randomize()</code> and <code>random()</code> function for generating pseudorandom numbers in C++ Builder. Now I prefer working in VS 2012, but when I tried to use these functions there it says that "identifier not found", even when I added <code>#include &lt;stdlib.h&gt;</code>. After some time of Googling I found that there are also <code>rand()</code> and <code>srand()</code> functions. What is the difference between them and which is it better to use?</p>