Random Function


(Piero Sabino) #1

I want to print to video 6 random numbers from a range of values


(Alex Blewitt) #2

If you’re on Linux:

import Glibc
print(“A random number is \(random())”)

If you’re on OSX:

import Darwin
print(“A random number is \(random())”)

···

On 11 Dec 2015, at 14:21, Piero Sabino via swift-users <swift-users@swift.org> wrote:

I want to print to video 6 random numbers from a range of values

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users