Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
anonymous_namespace{main.cpp}::Random Class Reference

The seeded source of every random choice. More...

Public Member Functions

 Random (quint64 seed)
 Seeds it with seed.
int between (int low, int high)
 An integer in [low, high].
bool chance (double p)
 True with probability p.
template<typename T>
const T & pick (const QList< T > &list)
 An element of list (which must not be empty).

Private Attributes

std::mt19937_64 m_engine
 The generator.

Detailed Description

The seeded source of every random choice.


The documentation for this class was generated from the following file:
  • tests/chaos/main.cpp