Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'RandomChoice' topicStudent Support Forum > General > Archives > "RandomChoice"

< Previous CommentHelp | Reply To Comment | Reply To Topic
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: ,

Subject (listing for 'RandomChoice')
Author Date Posted
RandomChoice endriuu 05/30/12 2:43pm
Re: RandomChoice Bill Simpson 05/30/12 4:02pm
Re: Re: RandomChoice endriuu 06/01/12 12:14pm
Re: Re: Re: RandomChoice Bill Simpson 06/01/12 8:03pm
< Previous CommentHelp | Reply To Comment | Reply To Topic