---
name: "__gnu_cxx::throw_value_random"
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/__gnu_cxx::throw_value_random"
---

# \_\_gnu\_cxx::throw\_value\_random(3)

Type throwing via random condition.

## NAME

\_\_gnu\_cxx::throw\_value\_random - Type throwing via random condition.

## SYNOPSIS

\#include \<throw\_allocator.h\>

Inherits **\_\_gnu\_cxx::throw\_value\_base\< random\_condition \>**.

### Public Types

typedef throw\_value\_base\< **random\_condition** \> **base\_type**\
 typedef **random\_condition** **condition\_type**\

### Public Member Functions

**throw\_value\_random** (const std::size\_t \_\_i)\
 **throw\_value\_random** (const throw\_value\_random &\_\_other)\
 **throw\_value\_random** (throw\_value\_random &&)=default\
 throw\_value\_base & **operator++** ()\
 throw\_value\_random & **operator=** (const throw\_value\_random &\_\_other)\
 throw\_value\_random & **operator=** (throw\_value\_random &&)=default\
 void **seed** (unsigned long \_\_s)\

### Static Public Member Functions

static void **set\_probability** (double \_\_p)\
 static void **throw\_conditionally** ()\

### Public Attributes

std::size\_t **\_M\_i**\

## Detailed Description

Type throwing via random condition.

## Author

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