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 /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/WeilDivisors.m2:2048:0.