You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In one of our projects, we have a collection of objects. In case the size of a collection is bigger than a threshold, we will sample the collection. We have to sample it in a deterministic way so that the result is the same when we sample the full collection again later on.
Context
In one of our projects, we have a collection of objects. In case the size of a collection is bigger than a threshold, we will sample the collection. We have to sample it in a deterministic way so that the result is the same when we sample the full collection again later on.
For that, we currently do something like:
However, it is not ideal that we have to use a deprecated way of seeding
rand
.Request
Hence, it would be great if instead, we would be able to do something like:
or
The text was updated successfully, but these errors were encountered: