A source of pseudorandom numbers.  
 More...
#include <random.h>
A source of pseudorandom numbers. 
Can be automatically generated from a random_context by using get_rnd(). 
 
◆ gaussian()
Generate a Gaussian distributed random number. 
- Parameters
 - 
  
    | m | The mean of the distribution  | 
    | s | The standard deviation of the distribution  | 
  
   
- Returns
 - A pseudorandom number Gaussian distributed. 
 
 
 
◆ string() [1/4]
  
  
      
        
          | std::string chebyshev::random::random_source::string  | 
          ( | 
          size_t  | 
          length | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Generate a random string made of human-readable ASCII characters. 
- Parameters
 - 
  
    | length | The length of the string to generate  | 
  
   
- Returns
 - A string generated by choosing the elements of the alphabet with uniform probability. 
 
 
 
◆ string() [2/4]
  
  
      
        
          | std::string chebyshev::random::random_source::string  | 
          ( | 
          size_t  | 
          length,  | 
         
        
           | 
           | 
          std::string  | 
          alphabet  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Generate a random string made of the elements of the given alphabet. 
- Parameters
 - 
  
    | length | The length of the string to generate  | 
    | alphabet | A string containing the elements of the alphabet.  | 
  
   
- Returns
 - A string generated by choosing the elements of the alphabet with uniform probability. 
 
 
 
◆ string() [3/4]
  
  
      
        
          | std::string chebyshev::random::random_source::string  | 
          ( | 
          size_t  | 
          length,  | 
         
        
           | 
           | 
          std::vector< char >  | 
          alphabet  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Generate a random string made of the elements of the given alphabet. 
- Parameters
 - 
  
    | length | The length of the string to generate.  | 
    | alphabet | A vector containing the elements of the alphabet.  | 
  
   
- Returns
 - A string generated by choosing the elements of the alphabet with uniform probability. 
 
 
 
◆ string() [4/4]
  
  
      
        
          | std::vector< T > chebyshev::random::random_source::string  | 
          ( | 
          size_t  | 
          length,  | 
         
        
           | 
           | 
          std::vector< T >  | 
          alphabet  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Generate a random string made of the elements of the given alphabet, of arbitrary type. 
- Parameters
 - 
  
    | length | The length of the string to generate  | 
  
   
- Returns
 - A vector generated by choosing the elements of the alphabet with uniform probability. 
 
 
 
◆ uniform() [1/3]
Generate a uniformly distributed random number. 
- Parameters
 - 
  
    | a | The lower extreme of the interval  | 
    | b | The upper extreme of the interval  | 
  
   
- Returns
 - A pseudorandom number uniformly distributed over (a, b). 
 
 
 
◆ uniform() [2/3]
Fill an already allocated vector with uniformly distributed numbers over different intervals. 
- Parameters
 - 
  
    | x | The already initialized vector to fill.  | 
    | intervals | The intervals to generate over.  | 
  
   
- Returns
 - A reference to the overwritten vector. 
 
 
 
◆ uniform() [3/3]
Fill an already allocated vector with uniformly distributed numbers over the same interval. 
- Parameters
 - 
  
    | x | The already initialized vector to fill.  | 
    | a | The lower extreme of the interval  | 
    | b | The upper extreme of the interval  | 
  
   
- Returns
 - A reference to the overwritten vector. 
 
 
 
The documentation for this class was generated from the following file: