Random walk in generalized quantum theory