mardi 14 juillet 2020

Is the Hive Rand() function inclusive or exclusive of 0 and 1?

The docs for the Apache Hive Rand() function say

Returns a random number (that changes from row to row) that is distributed uniformly from 0 to 1. Specifying the seed will make sure the generated random number sequence is deterministic.

Can anyone tell me if this is inclusive or exclusive of the endpoints 0 and 1?




Aucun commentaire:

Enregistrer un commentaire