1. A method comprising:
identifying, by a device and for a queue, a drop probability using an index;
determining, by the device and based on the identified drop probability, whether to drop data from a head of the queue,
determining whether to drop the data including:
comparing the identified drop probability to a random number,
the random number having a greater number of bits than a number of bits in the identified drop probability, and
generating a drop decision based on a result of the comparison; and
processing, by the device, the data at the head of the queue based on determining whether to drop the data.