HackerTrans
トップ新着トレンドコメント過去質問紹介求人

rtu8lu

no profile record

コメント

rtu8lu
·8 か月前·議論
Not really. There are many ways depending on your needs. For example, you can partition your space first, then generate randomly inside each of the subspaces. Let's say I need 200 numbers from -1000 to 999. The first range will be 0 to +99, the second -1 to -100, then +100 to +199, and so on. So, to generate a random number I just need an index and the bounds.
rtu8lu
·8 か月前·議論
When you generate randomized data in an order from the simplest to the most complex.
rtu8lu
·8 か月前·議論
Great project. I used it a lot, but now I mostly prefer ad hoc generators. Hypothesis combinators quickly become unmaintainable mess for non-trivial objects. Also, shrinking is not such a big deal when you can generate your data in a complexity-sorted order.