A method for random access, comprising: sending, by a terminal device, a random access request message to a network device, wherein the random access request message carries a random access preamble and other information; determining a Random Access-Radio Network Temporary Identifier, RA-RNTI, based on at least one of: information of resource occupied by the random access request message, information of resource occupied by a random access response to be monitored, other signals carried by the resource occupied by the random access response to be monitored, the random access preamble, and said other information carried by the random access request; monitoring, with the RA-RNTI, the random access response to be monitored which is sent by the network device, wherein determining a Random Access-Radio Network Temporary Identifier, RA-RNTI, comprises: determining the RA-RNTI based on a formula as below: RA-RNTI = a + b ∗ f x + c ∗ f y + d ∗ f z + e ∗ f ue _ id wherein: a, b, c, d and e are integers; f (x) represents a function in which information of resource in time domain occupied by the random access request message is a variable; f (y) represents a function in which information of resource in frequency domain occupied by the random access request message is a variable; f (z) represents one of following functions: a function in which information of an uplink beam occupied by the random access request message is a variable, a function in which information of a downlink beam occupied by the random access response message is a variable, a function in which information of a reference signal carried in an uplink beam occupied by the random access request message is a variable, a function in which information of a downlink beam the terminal device expects the network device to use, which is carried in the random access request message, is a variable, and a function in which information of the resource occupied by at least one of the random access request message and a beam corresponding to the random access preamble is a variable; f (ue_id) represents a function in which an identifier of the terminal device carried in the random access request message is a variable. sending, by a terminal device, a random access request message to a network device, wherein the random access request message carries a random access preamble and other information; determining a Random Access-Radio Network Temporary Identifier, RA-RNTI, based on at least one of: information of resource occupied by the random access request message, information of resource occupied by a random access response to be monitored, other signals carried by the resource occupied by the random access response to be monitored, the random access preamble, and said other information carried by the random access request; monitoring, with the RA-RNTI, the random access response to be monitored which is sent by the network device, wherein determining a Random Access-Radio Network Temporary Identifier, RA-RNTI, comprises: determining the RA-RNTI based on a formula as below: RA-RNTI = a + b ∗ f x + c ∗ f y + d ∗ f z + e ∗ f ue _ id wherein: a, b, c, d and e are integers; f (x) represents a function in which information of resource in time domain occupied by the random access request message is a variable; f (y) represents a function in which information of resource in frequency domain occupied by the random access request message is a variable; f (z) represents one of following functions: a function in which information of an uplink beam occupied by the random access request message is a variable, a function in which information of a downlink beam occupied by the random access response message is a variable, a function in which information of a reference signal carried in an uplink beam occupied by the random access request message is a variable, a function in which information of a downlink beam the terminal device expects the network device to use, which is carried in the random access request message, is a variable, and a function in which information of the resource occupied by at least one of the random access request message and a beam corresponding to the random access preamble is a variable; f (ue_id) represents a function in which an identifier of the terminal device carried in the random access request message is a variable. wherein: a, b, c, d and e are integers; f (x) represents a function in which information of resource in time domain occupied by the random access request message is a variable; f (y) represents a function in which information of resource in frequency domain occupied by the random access request message is a variable; f (z) represents one of following functions: a function in which information of an uplink beam occupied by the random access request message is a variable, a function in which information of a downlink beam occupied by the random access response message is a variable, a function in which information of a reference signal carried in an uplink beam occupied by the random access request message is a variable, a function in which information of a downlink beam the terminal device expects the network device to use, which is carried in the random access request message, is a variable, and a function in which information of the resource occupied by at least one of the random access request message and a beam corresponding to the random access preamble is a variable; f (ue_id) represents a function in which an identifier of the terminal device carried in the random access request message is a variable.