# randomInt

Description: randomInt 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-int.mdx

### Signature

```solidity
function randomInt() external view returns (int256);
function randomInt(uint256 bits) external view returns (int256);
```

### Description

Returns a random `int256` value. If `bits` is specified, the returned value has the given bits size.
