Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

HANA Calculation view random number

$
0
0

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


Viewing all articles
Browse latest Browse all 5653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>