[AS3] Security solutions -- should I try obfuscated AS2?

I’m trying to come up with a good method for generating random numbers on a Flash client that can’t be simply duplicated and rigged. Think of it basically like a gambling solution. I want to be able to securely generate randomized dice, without someone simply decompiling my files, creating their own version, and then submitting crap to my server. I’d just generate everything on the server but it’s laggy.

I understand that obfuscated AS2 SWFs are harder to decompile properly – so I’m thinking about putting the secret logic in there and then using LocalConnection. First, any flaws in that plan? Second, any suggestions for getting that working properly? I have some ideas, but I’m interested in feedback.