For testing purposes, I require a fixed list of doubles of around 10000 values (no precise limit on list size is strictly necessary) in the approximate range -100 to 1000. This list has to be suitably "random", with no noticeable increment/multiplicative difference between values. However this fixed list also has to be the exact same every time I run my code.
How can I create such a list without some crazy amount of manual labour?
Obviously if the list didn't have to be the same every time it would be much easier, and I could simply use the Random
library. Were that the case even a looping yield return;
with a variable increment having a mean increase like randonNum.Next(-50, 100)
would probably be suitable, but evidently an implementation like this would change every time I ran my code.
Aucun commentaire:
Enregistrer un commentaire