How to Random integer in Range? C++

and how to get (a copy) of the item founds under the range and set to Number?