!b boolean logical negation of b
x * y numbers product of numbers x and y
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Based on https://github.com/ngs/color-hash.swift | |
import UIKit | |
import XCPlayground | |
//magic numbers taken from original | |
let seed = CGFloat(131.0) | |
let seed2 = CGFloat(137.0) | |
let maxSafeInteger = 9007199254740991.0 / seed2 |