<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/UniformRandomFloatingPointParameter",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents35UniformRandomFloatingPointParameterV"
  },
  "title" : "UniformRandomFloatingPointParameter"
}
-->

# UniformRandomFloatingPointParameter

Applies the transformer with a randomly generated input parameter.

```
struct UniformRandomFloatingPointParameter<RandomTransformer, Parameter> where RandomTransformer : RandomTransformer, Parameter : BinaryFloatingPoint, RandomTransformer.Input == RandomTransformer.Output, Parameter.RawSignificand : FixedWidthInteger
```

## Overview

The parameter is chosen from a continuous uniform distribution in the specified range.

Note that a new transformer is created every time this transformer is applied.
This may cause performance issues if the embedded transformer creation is costly.

## Topics

### Creating a transformer

[`init<Input>(range: ClosedRange<Parameter>, (Parameter) -> RandomTransformer)`](/documentation/CreateMLComponents/UniformRandomFloatingPointParameter/init(range:_:))

Creates a Random Parameter transformer.

### Getting the range

[`var range: ClosedRange<Parameter>`](/documentation/CreateMLComponents/UniformRandomFloatingPointParameter/range)

The range of a random number to use as input to the transformer.

### Applying

[`func applied(to: RandomTransformer.Input, generator: inout some RandomNumberGenerator, eventHandler: EventHandler?) async throws -> RandomTransformer.Output`](/documentation/CreateMLComponents/UniformRandomFloatingPointParameter/applied(to:generator:eventHandler:))

Performs the random apply operation on the input.

## Relationships

### Conforms To

[`RandomTransformer`](/documentation/CreateMLComponents/RandomTransformer)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)