handlebars-helper
handlebars-helper copied to clipboard
Add optional seed to shuffle
I needed a way to reproducibly shuffle an array, so that I won't get different results each time the template is running (unless the underlying data is changed). This PR adds an optional seed argument to the shuffle function. If no seed is passed, the original functionality is retained.