How can I sort tasks in a random order using Dataview?

Speaking of which: It just strikes me: can’t we just “cache” the results in a constant, as in

const dueTasks = dv.pages().file.tasks
  .where(t => !t.completed)
  .where(t => t.due && t.due.day == dv.date('2022-12-07').day);

or will the entire script refresh, including the constant?

Need to try this, but don’t have time now. No need to try this: of course the constant is refreshed as well, otherwise task lists using constants wouldn’t be updating when a new task is added…