[swift-users] Make getting a random number more intuitive
Erica Sadun
erica at ericasadun.com
Thu Jan 21 15:00:13 CST 2016
* In terms of cross-platform random numbers, there are any number of third party libraries and you can use rand() on many platforms
* In terms of Mac, use GameplayKit for more rational generation. (http://ericasadun.com/2015/06/30/going-random-in-the-age-of-gameplaykit/ <http://ericasadun.com/2015/06/30/going-random-in-the-age-of-gameplaykit/>) You choose the source and distribution.
Not sure this is a Swift question but I hope this helps
-- E
> On Jan 21, 2016, at 11:19 AM, David Keck via swift-users <swift-users at swift.org> wrote:
>
> Is there a plan to make it easier to obtain a random number? Our the current method involving arc4random_uniform isn't very obvious IMO.
> _______________________________________________
> 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/20160121/cbe5ba14/attachment.html>
More information about the swift-users
mailing list