change the random generator to use the lua context syntax and and setters and getters for seed and state
more test stubs