add new constructor for random generator, FastFunc table is referred by a pointer