# std::discard_block_engine<Engine,P,R>::operator()

> C++ Atlas: `cppatlas.com/w/cpp/numeric/random/discard_block_engine/operator()` | Source: https://en.cppreference.com/w/cpp/numeric/random/discard_block_engine/operator() | Domain: Numerics | Standards: C++11

Generates a random value. The state of the underlying engine is advanced one or more times.

## Official Specification Summary (cppreference)

```cpp
result_type operator()(); // (since C++11)
```

Generates a random value. The state of the underlying engine is advanced one or more times.

### Parameters

(none)

### Return value

A pseudo-random number in [`min()`, `max()`].

### Exceptions

Throws nothing.

### See also

- [`discard`](https://en.cppreference.com/w/cpp/numeric/random/discard_block_engine/discard) (C++11): advances the adaptor's state by a specified amount (public member function)

---
Attribution: content from https://en.cppreference.com/w/cpp/numeric/random/discard_block_engine/operator() (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.