Feature request #5928

Random function

Added by Antti Ruonakoski about 7 years ago. Updated over 6 years ago.

Status:Closed
Priority:Normal
Assignee:Nathan Woodrow
Category:-
Pull Request or Patch supplied:No Resolution:fixed
Easy fix?:No Copied to github as #:15365

Description

Hi,

Please add RANDOM function to the expression builder. For example, it would be quite beneficial when calculating sample attribute values of randomly generated points.
To all developers, big thanks for QGIS! :)

History

#1 Updated by Nathan Woodrow about 7 years ago

What kind of random number would you expect. Just plain ints? The Postgres random function returns a number between 0.0 and 1.0.

Would you want to be able to supply a max and min range?

#2 Updated by Paolo Cavallini about 7 years ago

  • Target version set to Version 2.0.0

#3 Updated by Nathan Woodrow over 6 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

In master now

Also available in: Atom PDF