debug multinomialsample