Hello. I’m just playing around with Grist for the first time. I want to solve a very small use case I was previously using a Google spreadsheet to do.
I have a list of rows, each with two simple string fields (Album and Artist) and I want to select a random one on demand. I’m not sure how to achieve this.
I tried:
- Add a column with a random value (
=RAND()
), sort by it, grab the top one. Problem: the random column doesn’t get updated, not even on document reload. - Add a view that selects a random field (using Python
random.choice
on the list of elements) and then shows it. Same problem: it never gets updated after the first (presumably random) choice.
So basically what I’m missing is a way to trigger that random recalculation.
Any pointers on where to look?
Thanks in advance!