Added asserts to check the results from the children

I guess, the threads should share nothing, right?
I added asserts to check that setting of seed or generating
of random numbers will not affect the other threads.

The random generator can be stored in Lua_State.
The threads should look like independent processes.