Deterministic "randomness" in Swift

Some thoughts which might be helpful or not: