Im trying to figure out how to randomly insert certain numbers into a linked list with 10 nodes. Meaning I want to put for example numbers 1 5 10 15 20 25 30 35 40 50 in random locations in the linked list.
for the list, use std::list. to insert into random locations, my idea is to randomly select numbers before push_back(), or writing an algo to shuffle the list