display 25 randomnumbers from an array

Posted by qwerty on Stack Overflow See other posts from Stack Overflow or by qwerty
Published on 2010-06-03T08:16:26Z Indexed on 2010/06/03 8:34 UTC
Read the original article Hit count: 143

Filed under:
|

Hello,

I have in C++ an array of 100 elements, so v[1], ... ,v[100] contains numbers. How can i display, 25 random numbers from this array? So i wanna select 25 random positions from this array and display the values.. How can i do this in C++?

Thanks!

© Stack Overflow or respective owner

Related posts about c++

Related posts about arrays