πŸ“Š PHP
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()
πŸ’¬ Discuss
βœ… Correct Answer: (C) Both option1 and option2

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

Explanation by: Rati Dubey
rand() and random_int() can both generate random numbers; random_int() is cryptographically secure.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
62
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
93%
Success Rate