<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/AudioFileResource/Configuration-swift.struct/shouldRandomizeStartTime",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation17AudioFileResourceC13ConfigurationV24shouldRandomizeStartTimeSbvp"
  },
  "title" : "shouldRandomizeStartTime"
}
-->

# shouldRandomizeStartTime

Stores a Boolean indicating whether the playback begins from the start
of the file, or from a random position.

```
var shouldRandomizeStartTime: Bool
```

## Discussion

When this property and [`shouldLoop`](/documentation/RealityKit/AudioFileResource/Configuration-swift.struct/shouldLoop) are both true,
only the first playback iteration begins from a random position.

---

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)