What is the difference between the built-in functions rand() and srand() in awk programming?

Ngọc Trâm

New member
What is the difference between the built-in functions rand() and srand() in awk programming?
A. rand() generates the random number but srand() does not generate the random number
B. rand() generates the same random number always whenever the program runs but srand() generates the different
C. srand() requires the seed() function but rand() does not require to produce the same result
D. none of the mentioned
 

Tìm kiếm

Back
Top