# roll

Description: roll cheatcode documentation

Note: This document was authored using MDX

  Source: https://github.com/NomicFoundation/hardhat-website/tree/main/src/content/docs/docs/reference/cheatcodes/Environment/roll.mdx

{/* This document contains content copied/adapted from the Foundry Book (MIT licensed). See LICENSE in the parent directory. */}

### Signature

```solidity
function roll(uint256) external;
```

### Description

Sets `block.number`.

### Examples

```solidity
vm.roll(100);
emit log_uint(block.number); // 100
```

### SEE ALSO

- [rollFork](/docs/reference/cheatcodes/forking/roll-fork)
