How would I implement this aloroghithm in LUA?

I’m not sure what you mean by this.

This states that it uses the “XSH-RR variant of the PCG family.”

You can even check out the source code for yourself