Queues in a random environment