Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.71 KB

shuffle-order-engine-class.md

File metadata and controls

51 lines (35 loc) · 1.71 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: shuffle_order_engine Class
shuffle_order_engine Class
11/04/2016
random/std::shuffle_order_engine
random/std::shuffle_order_engine::base
random/std::shuffle_order_engine::discard
random/std::shuffle_order_engine::operator()
random/std::shuffle_order_engine::base_type
random/std::shuffle_order_engine::seed
std::shuffle_order_engine [C++]
std::shuffle_order_engine [C++], base
std::shuffle_order_engine [C++], discard
std::shuffle_order_engine [C++], base_type
std::shuffle_order_engine [C++], seed
0bcd1fb0-44d7-4e59-bb1b-4a9b673a960d

shuffle_order_engine Class

Generates a random sequence by reordering the values returned from its base engine.

Syntax

template <class Engine, size_t K>
class shuffle_order_engine;

Parameters

Engine
The base engine type.

K
Table size. Number of elements in the buffer (table). Precondition: 0 < K

Members

shuffle_order_engine::shuffle_order_engine
shuffle_order_engine::base
shuffle_order_engine::base_type
shuffle_order_engine::discard
shuffle_order_engine::operator()
shuffle_order_engine::seed

For more information about engine members, see <random>.

Remarks

This class template describes an engine adaptor that produces values by reordering the values returned by its base engine. Each constructor fills the internal table with K values returned by the base engine, and a random element is selected from the table when a value is requested.

Requirements

Header: <random>

Namespace: std

See also

<random>