A

Admin • 670.22K Points
Coach

Q. What type does `Int.random(in: 1...5)` return?

  • (A) Array
  • (B) Int
  • (C) Float
  • (D) Bool
  • Correct Answer - Option(B)
  • Views: 1
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin
`Int.random(in:)` returns a random integer within the specified range.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.