How to Generate Random Numbers in Shopify liquid

Sell Online With Shopify
Trusted by millions of businesses worldwide
Start your Shopify 14-day free trial and save up to 25% on Shopify when you sign up for an annual, 2-year, or 3-year plan.

Today I am sharing a script code to create a random number in Shopify liquid.

And here is an example, generate a random number from 1 to 100. Wanna change the range, just edit value of min and max.

I hope it’s helpful for you.

Happy coding.

You may also like...

Leave a Reply

Your email address will not be published.