Hi there,
Basically, I'm trying to generate a random number for use in a CE_CALC function in my calculation view script.
This is my code:
mc_proj = CE_PROJECTION(:mc_prac, ["LEADS_MIN", "LEADS_MAX",
CE_CALC('"LEADS_MIN" + :rnd * ("LEADS_MAX" - "LEADS_MIN")', double)
as "R_LEADS", "COST_MIN", "COST_MAX", "RATE_MIN", "RATE_MAX",
"PROFIT_MIN", "PROFIT_MAX", "OVERHEAD"]);
rnd is supposed to be the variable that will hold my random number.
What's the best way to go about this?
Thanks