What's the purpose of your function? Is it simply to score the set of dice (meaning that it's some other function, perhaps its caller, that is intended to accumulate or track the game's running score?) Or is it your function's job both score this set of dice and track the running score?
If it is the responsibility of the function that calls your poeng function to track the score, that function should probably be adding whatever your function returns to that running score. Or it should be calling your poeng function with the current score as an additional input, leaving your poeng function to change that current score and return it.
If it is the responsibility of your poeng function to track the score, you may want to use a persistent variable.
