RFTester Tool for automated testing relevance feedback algorithms fro known-item search

Static Public Member Functions | Static Private Attributes | List of all members
RFTesterBackend.SecureRandom Class Reference

Main class for secure generating random numbers from multiple threads More...

## Static Public Member Functions
static int | GetRandomNumber (int min, int max)
| Generates random number in the specified interval [min, max) More...
static int | Next (int max)
| Generates random number int he interval [0, max) More...
static int | Next (int min, int max)
| Generates random number in the specified interval [min, max) More...
static double | NextDouble (double max)
| Generates random double in the interval [0, max) More...
static double | NextDouble ()
| Generates random double in the interval [0, 1) More...
static float | NextFloat (float max)
| Generates random float in the interval [0, max) More...
static float | NextFloat ()
| Generates random float in the interval [0, 1) More...

## Static Private Attributes
static readonly Random | getrandom = new Random( (int) DateTime.Now.Ticks)
| Private generator of random numbers More...

## Detailed Description

Main class for secure generating random numbers from multiple threads

## Member Function Documentation

## ◆ GetRandomNumber()

static int RFTesterBackend.SecureRandom.GetRandomNumber | ( | int | min,
|  | int | max
| ) |  |
| inlinestatic

Generates random number in the specified interval [min, max)

Parameters

  min |
  max |

Returns

## ◆ Next() [1/2]

static int RFTesterBackend.SecureRandom.Next | ( | int | max | ) |
| inlinestatic

Generates random number int he interval [0, max)

Parameters

  max |

Returns

## ◆ Next() [2/2]

static int RFTesterBackend.SecureRandom.Next | ( | int | min,
|  | int | max
| ) |  |
| inlinestatic

Generates random number in the specified interval [min, max)

Parameters

  min |
  max |

Returns

## ◆ NextDouble() [1/2]

static double RFTesterBackend.SecureRandom.NextDouble | ( |  | ) |
| inlinestatic

Generates random double in the interval [0, 1)

Returns

## ◆ NextDouble() [2/2]

static double RFTesterBackend.SecureRandom.NextDouble | ( | double | max | ) |
| inlinestatic

Generates random double in the interval [0, max)

Parameters

  max |

Returns

## ◆ NextFloat() [1/2]

static float RFTesterBackend.SecureRandom.NextFloat | ( |  | ) |
| inlinestatic

Generates random float in the interval [0, 1)

Returns

## ◆ NextFloat() [2/2]

static float RFTesterBackend.SecureRandom.NextFloat | ( | float | max | ) |
| inlinestatic

Generates random float in the interval [0, max)

Parameters

  max |

Returns

## Member Data Documentation

## ◆ getrandom

readonly Random RFTesterBackend.SecureRandom.getrandom = new Random( (int) DateTime.Now.Ticks)
| staticprivate

Private generator of random numbers

The documentation for this class was generated from the following file:

- RFTesterBackend/SecureRandom.cs