---
name: "std::random_device"
section: "3cxx"
platform: "linux"
package: "libstdc++-12-doc"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/std::random_device/3cxx"
---

# std::random\_device(3cxx)

## NAME

std::random\_device

## SYNOPSIS

`#include <random>`

### Public Types

**typedef** unsigned int **result\_type**\

### Public Member Functions

**random\_device** (const **random\_device** &)=**delete**\
 **random\_device** (const **std::string** &\_\_token)\
 double **entropy** () const noexcept\
 **result\_type** **operator()** ()\
 **void** **operator=** (const **random\_device** &)=**delete**\

### Static Public Member Functions

**static** constexpr **result\_type** **max** ()\
 **static** constexpr **result\_type** **min** ()\

## Detailed Description

A standard interface to a platform-specific non-deterministic random number generator (if any are available).

## Member Typedef Documentation

### typedef unsigned int std::random\_device::result\_type

The type of the generated random value.

## Author

Generated automatically by Doxygen for libstdc++ from the source code.
