Static Methodvapor 4.114.1Vapor->Swift
random(count:using:)
Array+Random.swift:20static func random<T>(count: Int, using generator: inout T) -> [Element] where T : RandomNumberGenerator
static func random<T>(count: Int, using generator: inout T) -> [Element] where T : RandomNumberGenerator
sSa5Vapors17FixedWidthIntegerRzlE6random5count5usingSayxGSi_qd__ztSGRd__lFZ
What are these?9BERI
where Element:FixedWidthInteger
import Swift
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
@frozen struct Array<Element>
An ordered, random-access collection.
@frozen struct Int
A signed integer value type.
protocol RandomNumberGenerator
A type that provides uniformly distributed random data.
protocol FixedWidthInteger : BinaryInteger, LosslessStringConvertible where Self.Magnitude : FixedWidthInteger, Self.Magnitude : UnsignedInteger, Self.Stride : FixedWidthInteger, Self.Stride : SignedInteger
An integer type that uses a fixed size for every instance.
static func random(count: Int) -> [Element]