In the immortal words of Missy Elliott, sometimes you just need to “Put my thing down, flip it, and reverse it.” We’ve heard that’s been true for your Coda docs, and while some of you have already discovered these, we’re excited to confirm 3 new formulas with you today!
Can you guess what this one does by its name? That’s rightーnow you can automatically structure your outputs as a list in the reverse order. Previously, it took some complex formulas to do this, but now you can simply use ReverseList() to reverse the order of an unsorted table or list.
Ever need a random number for your code tests, statistical analysis, app, game, or just for fun? The RandomInteger() formula has you covered. This new formula allows you to set min and max bounds, as well as whether the value should update continuously (true) or not (false).
Similar to to the above formula, the RandomItem() formula lets Coda handle the randomization of your list for you. With RandomItem(), you can designate a list or array as the selection set, and indicate whether the random selection should update continuously or not. This one is especially helpful for building tables to decide where to order dinner from when you and your partner can’t choose.
A fun experiment is to try writing these without the new formulas and then with the new formulas. We hope these additions make life much easier.