randomly select formula

  • Asked
  • Active
  • Viewed 3111 times
0

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

0

Accepted answer

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

0

Accepted answer

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

Your answer

Markdown text. Shortcuts: Ctrl+B bold, Ctrl+I italic, Ctrl+K link, Ctrl+E code, Ctrl+Shift+V paste as plain text. Tab indents list items and code; press Escape, then Tab, to leave the text box.

Insert an image

Say what the image shows, for people who can't see it.

Keyboard shortcuts

Anywhere

?
Show this list
/
Search
g h
Go to the home page
g q
Go to the questions
g t
Go to the tags
g u
Go to the users
a
Ask a question

Lists of questions

j k
Next or previous question
Enter
Open the question

Question pages

j k
Next or previous post

Shortcuts never apply while you type in a text field. Members can turn them off in their preferences.