SciSharp / NumSharp

High Performance Computation for N-D Tensors in .NET, similar API to NumPy.
https://github.com/SciSharp
Apache License 2.0
1.38k stars 192 forks source link

Fixing the consistency of seed in the random choice. #489

Closed bojake closed 11 months ago

bojake commented 1 year ago

Fixed the choice method so that it respects the seed of the random st…ate it is running in. Fixed the Seed attribute from NumPyRandom so that it returns the seed value that was specified in the ctor. Added unit tests for testing the seed state's consistency.