You are here: Symbol Reference > StatRandom Namespace > Functions > StatRandom.RandomF Function
Stats Master VCL
ContentsIndex
PreviousUpNext
StatRandom.RandomF Function

F distribution random generator.

Pascal
procedure RandomF(const ANu1: Integer; const ANu2: Integer; const Results: TDenseMtxVec; const Seed: Integer = -1);

This routine generates Result.Length pseudo random numbers, using the F distribution with parameters ANu1 and ANu2. The random numbers are stored in the Results vector. An exception is raised if Result vector is complex.

Generate 2000 random numbers by using the F distribution with parameters Nu1=2 and Nu2=5.

Uses MtxExpr, StatRandom;
procedure Example;
  var Res: Vector;
begin
  Res.Size(2000);
  RandomF(2,5, Res);
end;
#include "MtxExpr.hpp"
#include "StatRandom.hpp"
void __fastcall Example()
{
  sVector Res;
  Res.Size(2000,false);
  RandomF(2, 5, Res,-1);
}
Examples on GitHub
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!