TruthTable.RandomGenerate
Back to table
/*
Logic-Function-Analysis
TruthTable.RandomGenerate
[TruthTable table]=TruthTable.RandomGenerate(int inputCount, int outputCount, bool withDontCare);
inputCount : the number of the input variables.
outputCount : the number of the output function.
withDontCare : true for ignoring some combination of the inputs.
Randomly generate a TruthTable.
*/
//-------------------------------------------------------------------
// examples
[table]=TruthTable.RandomGenerate(4,8,true);
Print(table);
//-------------------------------------------------------------------
// result
IsCovering IsEqual ToAndOr List BinaryNumberToString NineComplement ToOrAnd ToDualFunction Dimacs Email FeedbackSystem Imply list() LogicScript MantissaToPositiveDecimal MostSignificantDigit PositiveIntegerToMantissa RadixFromIndex RadixToIndex Realization SOP ShortestInputsForDistinguishTwoStates Backwardly ToFeedbackSystem Canonical SimpleInner RandomGenerate AdjustLogicVariableCount EnlargeLogicFunction Zero