added support for minimal degree of random ideals