I would like to make where the command pulls a random text box and put it in the snippet.
Example: I have 1-10 in a google spreadsheet I want it to pull a random number from that list and place it inside the snippet.
Hi, and welcome to the forum!
You can use the random()
function to generate a random number between 0 and 1. You can use this to select a random item from a list:
{=random()}
{=random()}
{=random()}
Selecting a random item from a list:
{list=["red", "green", "blue", "yellow", "pink", "purple", "orange", "black"]}
{=list[ceil(random() * count(list))]}
{=list[ceil(random() * count(list))]}
{=list[ceil(random() * count(list))]}
This thread has a guide on how to pull a Google Sheet into your snippet: