| Author |
Comment/Response |
Bill Simpson
|
06/01/12 8:03pm
In Response To 'Re: Re: RandomChoice' --------- I apologize for my error. I hope it is correct now.
f[v_]:=Sort[Join[v,{Join[v,{Last[v]+1}][[RandomInteger[{1,Length[v]+1}]]]}]];
Take that a piece at a time. Understand how each piece of that works. Then assemble it one piece at a time and see how the pieces work together until you can see how the entire function works.
URL: , |
|