---
title: "randomly select formula"
url: "https://openforis.support/questions/2580/randomly-select-formula"
tags: ["collect"]
status: "answered"
score: 0
answer_count: 2
asked: "2020-01-09T13:21:23"
last_activity: "2020-01-16T16:19:26"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# randomly select formula

Asked by beka on 2020-01-09

Hi all

Is it possible to randomly select a tree per species in the Collect? if yes - can you tell me a formula as well?

best regards

beka


## Answer (score 0, by Open Foris on 2020-01-11)

Link: https://openforis.support/questions/2580/randomly-select-formula/2584

Hi Beka,

Could you tell us more about what you want to do? Perhaps Collect is not the right tool for it as it sounds that you want to do some randomised test of the data?? There is no random function implemented so far

Thanks


## Answer (score 0, by Stefano (OF) on 2020-01-16)

Link: https://openforis.support/questions/2580/randomly-select-formula/2594

Hi Beka,  
In version 3.25.0 of Collect there will be a math:random() function that gives a random  you can use to randomly "select" a tree, for example you can use it in a calculated attribute (mark it with "calculate one time" also) with an expression like `math:random() > 0.5`.  
Please let us know if it will be enough for you.  
Thanks,  
Open Foris Team
