fixed bug in getPossibleParents
fixed bugs in random number generators
Fixed the logic in random net generation but it seems that my random
generator is not that random