Value randerr(::nk::ops::RngContext &rng, size_t m, size_t n, const Value &errspec, bool have_state, uint32_t state, std::pmr::memory_resource *mr=nullptr)
Generate an m×n binary error pattern (out = randerr(m, n, errors, state)).
Value randsrc(::nk::ops::RngContext &rng, size_t m, size_t n, const Value &alphabet, bool have_state, uint32_t state, std::pmr::memory_resource *mr=nullptr)
Generate an m×n random matrix from a finite alphabet (out = randsrc(m, n, alphabet,...