AlenkaF commented on issue #47288: URL: https://github.com/apache/arrow/issues/47288#issuecomment-3207427606
I am happy to do more research on this, but _I think_ that casting floats from higher to lower precision should be fine. However, casting from float to int should involve some kind of scaling to preserve the uniform distribution of the [random number generator](https://arrow.apache.org/docs/cpp/compute.html#random-number-generation). Something similar to what is discussed here: https://stackoverflow.com/questions/5692189/standard-uniform-dist-to-discrete-uniform-a-b -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
