powered by
chooseRule() selects a production rule index from the vector of production rule indices in the g$PT$LHS for a non-terminal symbol.
chooseRule()
g$PT$LHS
chooseRule(riv)
Integer. Index of the production rule.
Vector of production rules indices for a non-terminal symbol.
Other Random Choice: chooseNode()
chooseNode()
chooseRule(c(7, 8, 9)) chooseRule(as.vector(1))
Run the code above in your browser using DataLab