Hello everybody,
Please, I would like to ask for help on the following question:
1- Define a random variable in Moodle -> w = shuffle([0,1]);
2- Define the point in jsxgraph:
var interof1 = b.create('intersection', [l1, l6, 0],{name:'O2', size:3,fixed:true, Color:'#ff0000', visible:{ if w[0]==0, true, false}});
3- My objective is that if w[0]==0 the point "interof1" is visible and if w[0]==1 the point is not visible.
4- I tried to apply the code to the visible property: visible:{if w[0]==0, true,
false}}); - but it did not work.
5- Is there any way to do this?
Thank you very much, Marcelo.