skeleton code and tests for TransBelief random sampling.