Create randomfunctions class