[swift-users] Random Function

Alex Blewitt alex.blewitt at gmail.com
Fri Dec 11 09:15:14 CST 2015


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 at swift.org> wrote:
> 
> I want to print to video 6 random numbers from a range of values
> 
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20151211/13ce1654/attachment.html>


More information about the swift-users mailing list