[swift-evolution] [Proposal] Random Unification

Mike Kluev mike.kluev at gmail.com
Fri Dec 1 02:14:26 CST 2017


on Thu, 30 Nov 2017 15:08:55 -0800 Jonathan Hull <jhull at gbis.com> wrote:

>
> I think it is important to have Type.random as the base because there are
> many types which would conform (not just Int & Double).



what would Double.random return though? a "uniformly distributed value" in
the range minus DBL_MAX ...  plus DBL_MAX ?

Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171201/8e3d3b1e/attachment.html>


More information about the swift-evolution mailing list