ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

UniformIntegerDistribution

@frozen
public struct UniformIntegerDistribution<T> : RandomDistribution where T : FixedWidthInteger
  • Declaration

    public let lowerBound: T
  • Declaration

    public let upperBound: T
  • Declaration

    public init(lowerBound: T = T.self.min, upperBound: T = T.self.max)
  • Declaration

    public func next<G>(using rng: inout G) -> T where G : RandomNumberGenerator