Open vanillajonathan opened 1 week ago
Yes, would be happy to add this. Probably start with math.randint
?
@vanillajonathan if you want to add, search for math.abs
as an example.
Note that random is an impure function and suffer from a the problem described in #1111
What's up?
PRQL does not yet have any random function(s). SQL have the
RAND
function which can be used awkwardly used using s-strings.It would be nice if PRQL has a random function, it could work like
randint
in Python, i.e. take in a low and high parameter in order to specify a range. The SQLRAND
function does not have this feature it can takes a seed as parameter.It could even generate a random letter: