question: Evolutionary game theory and the concept of an evolutionarily stable strategy have been not only extensively developed and successfully applied to explain the evolution of animal behavior, but also widely used in economics and social sciences. Recently, in order to reveal the stochastic dynamical properties of evolutionary games in randomly fluctuating environments, the concept of stochastic evolutionary stability based on conditions for stochastic local stability for a fixation state was developed in the context of a symmetric matrix game with two phenotypes and random payoffs in pairwise interactions [Zheng et al., Phys. Rev. E 96, 032414 (2017)2470-004510.1103/PhysRevE.96.032414]. In this paper, we extend this study to more general situations, namely, multiphenotype symmetric as well as asymmetric matrix games with random payoffs. Conditions for stochastic local stability and stochastic evolutionary stability are established. Conditions for a fixation state to be stochastically unstable and almost everywhere stochastically unstable are distinguished in a multiphenotype setting according to the initial population state. Our results provide some alternative perspective and a more general theoretical framework for a better understanding of the evolution of animal behavior in a stochastic environment.