Part of the allure of gambling is the sense of randomness that impacts the outcomes.
What part of speech is the bolded word above?
Noun
"Randomness" is a noun, in this case the object of the preposition "of"