and now your rand will return what ever you want it to.BEGIN { my @list = 1..100; #or whatever; *CORE::GLOBAL::rand = sub { return shift @list } #or something }
In reply to Re^3: Non-deterministic Testing (srand)
by BUU
in thread Non-deterministic Testing
by moot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |