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

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

1.rand() generates the random number but srand() does not generate the random number

2.rand() generates the same random number always whenever the program runs but srand() generates the different

3.srand() requires the seed() function but rand() does not require to produce the same result

4.none of the mentioned


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!