Is there anyway to generate a random number using Custom Fields in Civi. any Ideas would be greatly appreciated

  • 1
    I have a drush script I've used to assign lottery numbers into a civicrm custom field, I'd be happy to share that with you.
    – Alan Dixon
    Commented May 2, 2017 at 14:19

1 Answer 1


There is no built-in way to do that, but it would be an easy extension. Could you give a bit of background about how you would use the random numbers?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.