Generate 2000 random numbers by using the normal distribution with parameters mu=3.5 and sigma=0.
Uses MtxExpr, StatRandom; procedure Example; var Res: Vector; begin Res.Size(2000); RandomNormal(0,1, Res); end;
#include "MtxExpr.hpp" #include "StatRandom.hpp" void __fastcall Example() { sVector Res; Res.Size(2000,false); RandomNormal(0.0, 1.0, Res, 1); }
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
|