Skip to content
Augmented Code

Augmented Code

Performant, sleek and elegant.

  • Home
  • Drifty Asteroid
  • Signal Path
  • Blog
  • Contact
  • About

Tag: arcrandom_uniform

Posted on October 7, 2018October 20, 2018

Random unification in Swift 4.2

In the beginning of this year I blogged about how to generate random float and integers. Meanwhile, SE-0202 "Random Unification" got implemented in Swift 4.2 making my additions unnecessary. Let's take a look how to use new API for getting random numbers. Random integers, floats and booleans In my own implementation I was extending range …

Continue reading "Random unification in Swift 4.2"

  • Facebook
  • Twitter
  • LinkedIn
  • Email
Blog at WordPress.com.