StatRandom.RandomUniformD Method

void RandomUniformD(Int32 N, TDenseMtxVec results, Int32 Seed)

Discrete uniform distribution random generator.

#NameTypeDescription
1NInt32
2resultsTDenseMtxVecsource TVec or TMtx
3SeedInt32

Result: stored in self (calling object)

Remarks:

This routine generates Result.Length pseudo random numbers, using the discrete uniform distribution with parameter N. The random numbers are stored in the Results vector. An exception is raised if Result vector is complex.

Examples
using Dew.Math;
using Dew.Stats.Units;
namespace Dew.Examples
{
    private void Example()
    {
        Vector r = new Vector(2000,false);
        StatRandom.RandomUniformD(30, r,-1);
    }
}