Skip to content

Instantly share code, notes, and snippets.

View zmeyc's full-sized avatar

Andrii Fidria zmeyc

  • https://www.door3.com
  • Ukraine
View GitHub Profile
// Merged other forks and updated to Swift 2.0.
// Original code:
// https://gist.github.com/haipham/d169cdea2f28222db7f3
// http://stackoverflow.com/questions/24007129/how-does-one-generate-a-random-number-in-apples-swift-language
// https://gist.github.com/pontusarmini/169bc5b3c3fc552a4c3d
import Foundation
import CoreGraphics
// Suppress a warning