A

Admin • 832.27K Points
Coach

Q. Which function can be used to generate a random integer between two values?

  • (A) rand()
  • (B) random_int()
  • (C) Both option1 and option2
  • (D) random()
  • Correct Answer - Option(C)
  • Views: 34
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

rand() and random_int() can both generate random numbers; random_int() is cryptographically secure.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.