A method for random access, comprising: receiving, via a terminal device, N groups of random access-related information sent by a network device, wherein the N groups of random access-related information are determined by the network device according to a network deployment and optimization policy, and the i th group of random access-related information is used by the terminal device for determining a random access preamble set i and a time-frequency resource corresponding to the random access preamble set i, N being a positive integer greater than or equal to 1, i =1,...N; and sending, via the terminal device, a random access preamble to the network device according to the N groups of random access-related information, wherein the first group of random access-related information comprises: preamble information 1 and resource indication information 1, the j th group of random access-related information comprises: offset information j, and the offset information j is used by the terminal device for determining preamble information j and resource indication information j according to the offset information j, j=2,... N; wherein the preamble information 1 is used to indicate a parameter for determining a random access preamble set 1, the resource indication information 1 is used to indicate a time-frequency resource corresponding to the random access preamble set 1, the preamble information j is used to indicate a parameter for determining a random access preamble set j, and the resource indication information j is used to indicate a time-frequency resource corresponding to the random access preamble set j, and wherein the offset information j is an offset value of the preamble information j and the resource indication information j in the j th group of random access-related information with respect to the preamble information 1 and the resource indication information 1 in the first group of random access-related information, or the offset information j is an offset value of the preamble information j and the resource indication information j in the j th group of random access-related information with respect to preamble information j-1 and the resource indication information j-1 in the ( j -1) th group of random access-related information. receiving, via a terminal device, N groups of random access-related information sent by a network device, wherein the N groups of random access-related information are determined by the network device according to a network deployment and optimization policy, and the i th group of random access-related information is used by the terminal device for determining a random access preamble set i and a time-frequency resource corresponding to the random access preamble set i, N being a positive integer greater than or equal to 1, i =1,...N; and sending, via the terminal device, a random access preamble to the network device according to the N groups of random access-related information, wherein the first group of random access-related information comprises: preamble information 1 and resource indication information 1, the j th group of random access-related information comprises: offset information j, and the offset information j is used by the terminal device for determining preamble information j and resource indication information j according to the offset information j, j=2,... N; wherein the preamble information 1 is used to indicate a parameter for determining a random access preamble set 1, the resource indication information 1 is used to indicate a time-frequency resource corresponding to the random access preamble set 1, the preamble information j is used to indicate a parameter for determining a random access preamble set j, and the resource indication information j is used to indicate a time-frequency resource corresponding to the random access preamble set j, and wherein the offset information j is an offset value of the preamble information j and the resource indication information j in the j th group of random access-related information with respect to the preamble information 1 and the resource indication information 1 in the first group of random access-related information, or the offset information j is an offset value of the preamble information j and the resource indication information j in the j th group of random access-related information with respect to preamble information j-1 and the resource indication information j-1 in the ( j -1) th group of random access-related information.