completed separation of RandomSequence class an inheritance of Sequence class