Заменить Random на RandomGenerator в core.lib

Передавать RandomGenerator через setter