What is diff between srand & shuffle ?What is random number ?

Showing Answers 1 - 2 of 2 Answers

phpsushma

  • Oct 6th, 2006
 

What is diff between srand & shuffle?

Seeds the random number generator with seed..the seed becomes optional and defaults to a random value if omitted.



What is random number?

A random number is a number generated by a process, whose outcome is unpredictable, and which cannot be subsequentially reliably reproduced.

gopika

  • Oct 23rd, 2006
 

Shuffle

This function shuffles (randomizes the order of the elements in) an array.

This function assigns new keys for the elements in array. It will remove any
existing keys you may have assigned, rather than just reordering the keys.


SRand

Seed the random number generator

  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