Using Swift extensions to generate random numbers, characters and, more

Two principal industries use random numbers regularly. The games industry and the cryptographic one. So I thought it might make an interesting article to put together a collection of random number routines —

Now, I spare you the code to generate a random number, because you surely already know that…

Mark Lucking

Coding for 35+ years, enjoying using and learning Swift/iOS development. Writer @ Better Programming, @The StartUp, @Mac O’Clock, Level Up Coding & More

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store