<!--
{
  "availability" : [
    "macOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Virtualization",
  "identifier" : "/documentation/Virtualization/VZMACAddress/randomLocallyAdministered()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Virtualization"
    ],
    "preciseIdentifier" : "c:objc(cs)VZMACAddress(cm)randomLocallyAdministeredAddress"
  },
  "title" : "randomLocallyAdministered()"
}
-->

# randomLocallyAdministered()

Returns a valid, random, locally administered, unicast MAC address.

```
class func randomLocallyAdministered() -> Self
```

## Return Value

A MAC address suitable for use in your network devices.

## Discussion

This method doesn’t guarantee the generation of a unique MAC address.

---

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)