<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">* In terms of cross-platform random numbers, there are any number of third party libraries and you can use rand() on many platforms</div><div class="">* In terms of Mac, use GameplayKit for more rational generation. (<a href="http://ericasadun.com/2015/06/30/going-random-in-the-age-of-gameplaykit/" class="">http://ericasadun.com/2015/06/30/going-random-in-the-age-of-gameplaykit/</a>) You choose the source and distribution.</div><div class=""><br class=""></div><div class="">Not sure this is a Swift question but I hope this helps</div><div class=""><br class=""></div><div class="">-- E</div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 21, 2016, at 11:19 AM, David Keck via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">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.<br class="">_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></div></blockquote></div><br class=""></body></html>