.DESLib.RandomLib.Variates.Constant

Information

Constant

Generates a constant number.

Syntax

Constant(g,a)

Description

Always generates the same number, equal to the parameter a.

Examples


Constant(g,1) =
(1,g)

for i in 1:5 loop
  (u[i],g) := Constant(g,3);
end for;
// u = {3,3,3,3,3};

Interface

function Constant
  extends Var;
end Constant;

Generated at 2024-11-21T19:25:40Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos