# std::mersenne_twister_engine<UIntType,w,n,m,r,a,u,d,s,b,t,c,l,f>::operator()

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

Advances the state of the engine, and generates a pseudo-random value from the new state.

## Official Specification Summary (cppreference)

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

Advances the state of the engine, and generates a pseudo-random value from the new state.

### Return value

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

### Complexity

Amortized constant.

### See also

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

---
Attribution: content from https://en.cppreference.com/w/cpp/numeric/random/mersenne_twister_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.