JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
Hector's Tips & Experiments
Welcome
Add rows from one table to another
Formula Map
In-line buttons
Random Formula
Accumulated Sum
Timer in a table
BUG: Gravity forms
More
Share
Explore
Random Formula
Random Formula
How a random() formula is used to give you random meals
How a random() formula is used to give you random meals
Goal
: Show a random meal with a click of a button
First
: Create a table
Meals
Meals
0
Meal
Available
Meal
Available
1
Enchiladas
2
Tacos
3
Flautas
4
Mole
5
Pastor
6
Taco Fish
There are no rows in this table
Second
: Create a table to input the random number
Randomizer
Randomizer
0
1
Randomizer:
0.9646251895304521
There are no rows in this table
Third
: Button that creates a random number
Show a Random Meal -->
Fourth
: A Formula to give you a random item from
Meals
.
@
Taco Fish
Credits
:
Pantry & Recipes · Your Pantry
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.