I think functional affairs and gambling affairs are two different concepts and are not directly related. Functional affairs refer to the practical aspects of an activity or situation, while gambling affairs are related to games of chance or betting activities. The factors that determine gambling affairs include chance, probability, risk-taking behavior, and addiction, among others.