RNG class finished. Will erase dedicated branch after testing.