random number from array

I need the right function to get random numbers from the spesific array .
Say you have an array "rand_myArray" and a function "func_callmyArray"
So are you saying you need func_callmyArray to call any random number stored in rand_myArray in main() ?
OR
Do you mean func_callmyArray itself needs to generate some randomized ints and store its value in rand_myArray in main()?So each time rand_myArray needs to populate its value,its calls on func_callmyArray to generate it.
Last edited on
closed account (4z0M4iN6)
Do you mean:

- a randomly access to an array of numbers?
- or an array with random numbers?
- or a randomly access to an array full of random numbers?
I need the right function to get random numbers from the spesific array .


1) i don't understand this part
2) is this your HW?
3) if the 2nd question's answer is "no", please post your code so there's somebody could help you...
Last edited on
closed account (4z0M4iN6)
small]tgbslmt wrote:[/small]

I need the right function to get random numbers from the spesific array .

Then I think, you should look at this post:

http://cplusplus.com/forum/beginner/70795/
I need the right function to get random numbers from the spesific array .


In my opinion it is better to use the left function to get random numbers from the specific array! :)
Last edited on
Topic archived. No new replies allowed.