# randomBytes

Description: randomBytes cheatcode documentation

Note: This document was authored using MDX

  Source: https://github.com/NomicFoundation/hardhat-website/tree/main/src/content/docs/docs/reference/cheatcodes/Utilities/random-bytes.mdx

### Signature

```solidity
function randomBytes(uint256 len) external view returns (bytes memory);
```

### Description

Returns a random byte array value of the given length.
