i want to undestand how to use the passing by reference in Maple i do this:
generate_x := proc (x)
x := (rand(1 .. 10))()
generate_y := proc (y)
y := (rand(1 .. 5))();
print_xy := proc ()
local x, y;
generate_y(y) end proc;
#print(x) works but generate_y(y) doesn't print the value of y.
Can you help me to understand WHY i dont get the print of y.
Thanks and happy christmas to you!