RBM: add static boolean variable samplingFromProbabilites to choose
sample from values or from probabilities.