Based on some questions I have been poring through lately regarding the usage of Insight and Deception rolls in D&D 4E, I came across the idea to add a sort of "gambling mini-game" to my campaign for my players. What I want to do is create a rather simple algorithm, primarily using a character's Deception and Charisma scores, along with the RNG of their rolls and something else to create a fair algorithm -- after all, it should be something quantitative, so the players know they aren't getting cheated; who would want to gamble off the whim of someone else, after all?
Anyhow, I'd like to ask a question here regarding what else I should put in the formula. Simply saying "get a score above 20 will make you win that round of poker" is too basic, boring, and easy to manipulate. I debated posting this on StackOverflow, but because this algorithm is designed to work in a decently balanced fashion using the rules and standard practices of 4E, I figured this would be significantly more relevant here. Is such a question allowed/encouraged here? I've never seen anything on this SE related to algorithm design, as discussion is usually focused on how to best use pre-existing systems, so I figured I'd check in here first.