E
emsfeld
Hi guys
I need a hand on this one, cuz I have absolutely no clue:
I need a code that randomly selects three real numbers between 0 and
and assigns these to three variables. I defined the variables as w(0)
w(1), w(2). The problem is that the sum has to equal 1! Always! S
that:
w(0) + w(1) + w(2) = 1
Help is very much appreciated!!!
Thanks
Emsfel
I need a hand on this one, cuz I have absolutely no clue:
I need a code that randomly selects three real numbers between 0 and
and assigns these to three variables. I defined the variables as w(0)
w(1), w(2). The problem is that the sum has to equal 1! Always! S
that:
w(0) + w(1) + w(2) = 1
Help is very much appreciated!!!
Thanks
Emsfel