Try pressing the buttons below as many times as you like and watch how they both choose a random plant from our plants list, but also notice how their behavior differs
Random Plant: True as 2nd parameter
Random Plant: False as 2nd parameter
British Columbia Wild Ginger
Explanation of true parameter
When RandomItem() has its 2nd parameter set to True() it will choose a new random item from its target list every time, even if that item is randomly the same as the selection before
Explanation of false parameter
When RandomItem() has its2nd parameter set to False() it will choose a random item the very first time it is called and then it will continue to return that random item every time
A little game - Magic 8 ball the Coda way
Sorry to break it to you, but Magic 8 balls are not actually Magic. They are simply a RandomItem() Coda formula in the form of a black ball. When you shake the Magic 8 ball a many-sided die brings up a random saying to answer your question.
Try out this Coda version of a Magic 8 ball that relies on RandomItem() to pull a Random item from the
RandomSample() is a bit different than RandomItem() in that its primary purpose is to draw out sample sets of data from a larger set. For example...
You run a business that sells running-shoes, and the 500 people in the
Broken link
table are some of your customers. You are hoping to get some feedback about a new shoe design you recently launched but obviously don’t want your team calling each and every one of your customers.
This is where RandomSample() comes in. Use the controls below to create your sample set
I want a sample size of:
00
1
I only want a person to show up once:
Your random sampling of customers
@Ronnie Gross
Now that you have a random-set of customers, you can go ahead and send them that request for feedback! If you want to stick with Coda, the