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
IsBiUnateFunctionTo IsLinearFunction IsOneFunction IsSymmetricFunctionTo IsUnateFunction AbsoluteExpression BCDEx3 ToDiagram ToXORP DigitalSystem minterm() Nand MantissaToPositiveNumber Radixes object() real To2LayerAndXor SAT ToStateTransitionTable ToDigitalSystem FullTable DontCare SimpleCover SimpleInner TruthTable GetSubTable AdjustLogicVariableCount ComputeDONTCARE Xor Zero