Hi there,

I have to write a c++ program which says if arrow hit the target or don't. Place where arrow hit is determined with random number generator (x and y) coards. Place where the arrow hit is (-12; 12).

1.Target is 10 units. Count how much of 10 shots hitting the target.


First of all, i don't know how to make random number generator from -12 to 12.:/ That's why i am stuck.

I will be grateful for any help.