adding some random functions, and default reset behavior was modified

I just added some random functions: only those that are used by default_reset, and taking this into account, I modified this method/class