GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
rand.cc File Reference
#include <ctime>
#include <unordered_map>
#include <string>
#include "f77-fcn.h"
#include "lo-mappers.h"
#include "oct-rand.h"
#include "quit.h"
#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "ovl.h"
#include "unwind-prot.h"
#include "utils.h"
#include "ov-re-mat.h"
Include dependency graph for rand.cc:

Go to the source code of this file.

Functions

static octave_value do_rand (const octave_value_list &args, int nargin, const char *fcn, const std::string &distribution, bool additional_arg=false)
 
OCTAVE_EXPORT octave_value_list Frand (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Frande (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Frandg (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Frandn (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Frandp (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Frandperm (const octave_value_list &args, int)
 

Variables

static std::string current_distribution = octave::rand::distribution ()
 

Function Documentation

◆ do_rand()

◆ Frand()

OCTAVE_EXPORT octave_value_list Frand ( const octave_value_list args,
int   
)

Definition at line 442 of file rand.cc.

References do_rand().

◆ Frande()

OCTAVE_EXPORT octave_value_list Frande ( const octave_value_list args,
int   
)

Definition at line 644 of file rand.cc.

References do_rand().

◆ Frandg()

OCTAVE_EXPORT octave_value_list Frandg ( const octave_value_list args,
int   
)

Definition at line 781 of file rand.cc.

References do_rand(), and error().

◆ Frandn()

OCTAVE_EXPORT octave_value_list Frandn ( const octave_value_list args,
int   
)

Definition at line 577 of file rand.cc.

References do_rand().

◆ Frandp()

OCTAVE_EXPORT octave_value_list Frandp ( const octave_value_list args,
int   
)

Definition at line 1006 of file rand.cc.

References do_rand(), and error().

◆ Frandperm()

Variable Documentation

◆ current_distribution

std::string current_distribution = octave::rand::distribution ()
static

Definition at line 544 of file rand.cc.