You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtxVec Class > TMtxVec Methods > RandUniform Method > TMtxVec.RandUniform Method ()
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtxVec.RandUniform Method ()

The pseudo random sample generator with continuous uniform distribution.

Syntax
C#
Visual Basic
public TMtxVec RandUniform();

Fills the calling object values with pseudo random samples following the continuous uniform distribution using the parameters Low = 0, High = 1. The value for the seed is obtained from the CPU clock.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TVec a; MtxVec.CreateIt(out a); try { a.Size(100,false); a.RandUniform(); } finally { MtxVec.FreeIt(ref a); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!