Skip to content

Instantly share code, notes, and snippets.

@brennandunn
Created February 10, 2023 12:08
Show Gist options
  • Save brennandunn/da2bce58af16d5577c82349221d587d9 to your computer and use it in GitHub Desktop.
Save brennandunn/da2bce58af16d5577c82349221d587d9 to your computer and use it in GitHub Desktop.
Random number generation in ConvertKit
{% assign randomNumber = "now" | date: "%9N" | modulo: 10 | plus: 1 %}
{%- if randomNumber < 3 -%}
Message A
{%- else -%}
Message B
{%- endif -%}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment