* Generates a random intercept setting value. * @protected * @param {Random} random Random instance * @param {Setting} setting Setting instance * @return {string} Random intercept setting value
(random, setting)
| 224 | * @return {string} Random intercept setting value |
| 225 | */ |
| 226 | randomizeInterceptValue (random, setting) { |
| 227 | const alphabetSetting = this.getSetting('alphabet') |
| 228 | if (alphabetSetting.isValid()) { |
| 229 | const m = this.getSetting('alphabet').getValue().getLength() |
| 230 | return random.nextInteger(1, m - 1) |
| 231 | } |
| 232 | return null |
| 233 | } |
| 234 | } |
nothing calls this directly
no test coverage detected