Thread-local instance of the default Random allocated and seeded independently for each thread. Requires TLS.
import mir.random; import std.complex; auto c = complex(rne.rand!real, rne.rand!real); int[10] array; foreach (ref e; array) e = rne.rand!int; auto picked = array[rne.randIndex(array.length)];
See Implementation
Thread-local instance of the default Random allocated and seeded independently for each thread. Requires TLS.