vendredi 30 octobre 2020

Lightweight RandomState-like object in Python?

Is there a lightweight alternative to numpy's RandomState object in Python?

This object saves 624 integers to generate random numbers, however more lightweight methods to generate random numbers are possible (e.g. store integer s which is hashed for random number generation, then save s+1 as next state).

Is there a library which does something similar to the proposed method, while guaranteeing uniformity (generated numbers look like from uniform distribution) and independence (generated random numbers do not look like they have some dependence between each other)?




Aucun commentaire:

Enregistrer un commentaire