The "Sample" Jekyll liquid filter

Hi there,
Does the “sample” liquid filter grab a new sample with each page load, or is it only when they site is regenerated?

Thanks

When the site is regenerated. Anything you need to do with a page that is “dynamic” would have to be in JavaScript.

Thought so, do you know of any sample code i could take a look at please?