finish random class