After making some canonical attempts, embedAsIdeal tries to embed the module into a ring as an ideal in a random way. The value of this option is how many times that random embedding is attempted. The default value is 10.
The source of this document is in Divisor.m2:2047:0.