Random number in iOS

Is there a way to get a random number in iOS? On desktop, we can use this

Dim i As Integer = App.MyRandom.InRange(0, 1000) MessageBox("The random number is: " + i.ToString)

I searched the forum and found these pages, but it seems they are no longer available. Does anyone know where the new pages are located for RandomInt or comparable? Just looking to get some random numbers and repeaters are ok
http://xojo.helpdocsonline.com/math$RandomInt
http://developer.xojo.com/xojo-math$RandomInt

https://documentation.xojo.com/api/deprecated/deprecated_class_members/xojo.math.randomint.html

Thanks Paul! I saw that page but didn’t think RandomInt was part of iOS since it did not autocomplete, so I never even tried! But it works :slight_smile:

I created an external method that links in arc4random from Foundation. Works pretty well.