What is the difference between the functions rand(), random(), srand() and randomize()?

Showing Answers 1 - 1 of 1 Answers

The Rnd() function in each line creates a random number between o and 1(a number with a decimal point and several decimal places).


The Randomize() function uses system clock to create a truly random starting point or seed .


These 2 functions are used to obtain random numbers in a program.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions