---
name: "std::random_device"
section: "3"
platform: "linux"
package: "gcc"
version: "16.2.1+r23+gd564253eb6c8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/std::random_device"
---

# std::random\_device(3)

## 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).

**Since**

C++11

## 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.
