@aqjune @nunoplopes: See new tests at tests/lean/run/random.lean We have two actions in `io`. By default, `io` uses the C++ random number generator, but we can force it to use a `std_gen` with the action `set_rand_gen`. def rand (lo : nat := std_range.1) (hi : nat := std_range.2) : io nat def set_rand_gen : std_gen → io unit |
||
|---|---|---|
| .. | ||
| io.lean | ||
| io_interface.lean | ||
| random.lean | ||