A method in a wireless device of reducing collisions between device-to-device, D2D, communication resources and D2D discovery resources in a wireless communication network, the method comprising: obtaining a first plurality of transmission resources, the first plurality of transmission resources comprising transmission resources available to the wireless device for transmitting D2D discovery messages; obtaining a second plurality of transmission resources, the second plurality of transmission resources comprising a subset of the first plurality of transmission resources, the subset comprising transmission resources potentially unavailable to the wireless device for transmitting D2D discovery messages: characterized by associating a first weighted value with each transmission resource of the first plurality of transmission resources not included in the second plurality of transmission resources; associating a second weighted value with each transmission resource of the second plurality of transmission resources; selecting, for use during a first discovery period, a first transmission resource from the first plurality of transmission resources by performing a pseudo-random selection using the first weighted value and the second weighted value, wherein possible outcomes comprise selection of transmission resources associated with the first weighted value and selection of transmission resources associated with the second weighted value, and wherein transmission resources associated with the first weighted value are more likely to be selected than transmission resources associated with the second weighted value; determining whether the selected first transmission resource is available to transmit a discovery message; and upon determining the selected first transmission resource is available to transmit the discovery message, transmitting the discovery message using the selected first transmission resource. obtaining a first plurality of transmission resources, the first plurality of transmission resources comprising transmission resources available to the wireless device for transmitting D2D discovery messages; obtaining a second plurality of transmission resources, the second plurality of transmission resources comprising a subset of the first plurality of transmission resources, the subset comprising transmission resources potentially unavailable to the wireless device for transmitting D2D discovery messages: characterized by associating a first weighted value with each transmission resource of the first plurality of transmission resources not included in the second plurality of transmission resources; associating a second weighted value with each transmission resource of the second plurality of transmission resources; selecting, for use during a first discovery period, a first transmission resource from the first plurality of transmission resources by performing a pseudo-random selection using the first weighted value and the second weighted value, wherein possible outcomes comprise selection of transmission resources associated with the first weighted value and selection of transmission resources associated with the second weighted value, and wherein transmission resources associated with the first weighted value are more likely to be selected than transmission resources associated with the second weighted value; determining whether the selected first transmission resource is available to transmit a discovery message; and upon determining the selected first transmission resource is available to transmit the discovery message, transmitting the discovery message using the selected first transmission resource.