A method for transmitting a signal by a user equipment, UE, in a wireless communication system, the method comprising: transmitting N, where N > 1, first random access, RA, signals during a first duration; monitoring a random access response, RAR, for the first RA signals; and transmitting N second RA signals during a second duration, based on that the monitoring of the RAR is failed, wherein the first RA signals transmitted during the first duration are transmitted in a first transmit beam direction, and the second RA signals transmitted during the second duration are transmitted in a second transmit beam direction different from the first transmit beam direction, wherein information on a number of RA signals within each of the first and the second durations is received by the UE based on system information, based on that the UE is in an initial access procedure, wherein the information on the number of RA signals within each of the first and the second durations is received by the UE based on control information, based on that the UE is in a Radio Resource Control, RRC, connected state, wherein a size of a RAR window in the first duration is based on whether resources allocated for the RA signals within the first duration are consecutive, and a size of RAR window in the second duration is based on whether resources allocated for the RA signals within the second duration are consecutive, wherein the RAR window size in the first duration is proportional to a number of the RA signals within the first duration, based on that the resources allocated for the RA signals within the first duration are consecutive, wherein the RAR window size in the first duration is inversely proportional to the number of the RA signals within the first duration, based on that the resources allocated for the RA signals within the first duration are not consecutive, wherein the RAR window size in the second duration is proportional to a number of the RA signals within the second duration, based on that the resources allocated for the RA signals within the second duration are consecutive, and wherein the RAR window size in the second duration is inversely proportional to the number of the RA signals within the second duration, based on that the resources allocated for the RA signals within the second duration are not consecutive. transmitting N, where N > 1, first random access, RA, signals during a first duration; monitoring a random access response, RAR, for the first RA signals; and transmitting N second RA signals during a second duration, based on that the monitoring of the RAR is failed, wherein the first RA signals transmitted during the first duration are transmitted in a first transmit beam direction, and the second RA signals transmitted during the second duration are transmitted in a second transmit beam direction different from the first transmit beam direction, wherein information on a number of RA signals within each of the first and the second durations is received by the UE based on system information, based on that the UE is in an initial access procedure, wherein the information on the number of RA signals within each of the first and the second durations is received by the UE based on control information, based on that the UE is in a Radio Resource Control, RRC, connected state, wherein a size of a RAR window in the first duration is based on whether resources allocated for the RA signals within the first duration are consecutive, and a size of RAR window in the second duration is based on whether resources allocated for the RA signals within the second duration are consecutive, wherein the RAR window size in the first duration is proportional to a number of the RA signals within the first duration, based on that the resources allocated for the RA signals within the first duration are consecutive, wherein the RAR window size in the first duration is inversely proportional to the number of the RA signals within the first duration, based on that the resources allocated for the RA signals within the first duration are not consecutive, wherein the RAR window size in the second duration is proportional to a number of the RA signals within the second duration, based on that the resources allocated for the RA signals within the second duration are consecutive, and wherein the RAR window size in the second duration is inversely proportional to the number of the RA signals within the second duration, based on that the resources allocated for the RA signals within the second duration are not consecutive.