I’m looking for the spark equivalent of rand/random().
I notice that the web IDE recognises the keyword rand() but I’m looking to specify the range of numbers to select from.
I am trying to get a random number between 0 and 9.
The compiler doesn’t like rand(0,9) or random(0,9) and reports too many arguments error.
Similarly, I tried rand(9) assuming the minimum bound defaults to 0. Same error.
Thanks in advanced.