struct ran { const int base; std::vector rs; ran(const int base) : base(base) { for (int nz=0; nz