public member function
<random>

std::fisher_f_distribution::reset

void reset();
Reset distribution
Resets the distribution, so that subsequent uses of the object do not depend on values already produced by it.

This function may have no effect if the library implementation for this distribution class produces independent values.

Parameters

None

Return value

None

Example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// fisher_f_distribution::reset
#include <iostream>
#include <random>

int main()
{
  std::default_random_engine generator;
  std::fisher_f_distribution<double> distribution(2.0,2.0);

  // print two independent values:
  std::cout << distribution(generator) << std::endl;
  distribution.reset();
  std::cout << distribution(generator) << std::endl;

  return 0;
}

Possible output:
0.512143
0.831514


Complexity

Constant.

See also