brief-energy-88695
10/13/2023, 11:23 PM{x} button and put in workflow.randomNumber. Select your table and store the result in an appropriate variable.
Update: I tested that prompt for AI generation on the Execute Code card and the generated code is correct for achieving this. However, a more robust approach might be to use a prompt like
"Generate a random number within the range of valid Ids for the table 'TableName'. Store it in a worflow variable called 'randomNumber'."
Where 'TableName' is the name of your table. This is a more robust solution because it will dynamically get the number of records in your table, and you will not need to update your code when the number of records in your table changes.