How can I set Random Points Inside Polygons so that the number of points created inside each feature is based on an attribute value for that feature?

Based on other answers I see elsewhere on Stack Exchange, there should be an option for this in the GUI but I'm not seeing it. enter image description here

I'm using QGIS version 3.10.6 (A Coruña).

1 Answer 1


To use an attribute to determinate the number of points inside each polygon you need to use the Data Defined Override in the option Point count or density Here you can use an expression or just add a field from the attribute table using "FIELD_NAME" as syntax.

enter image description here

  • It worked! Thank you.
    – adonak
    May 22, 2020 at 12:36

Your Answer

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

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