Look my friend I don't know how you don't know the size of array and you said you will generate some number, so tell me when you'll stop generating numbers? Any way I know you question is away from this.
Your question answer is
For index As Integer = 1 To YourArray.Length
'Your search algorithm resides here
Next
It'd work whatever you know the size or not and if you changed its size at runtime.
Hope I got more from you :) best of luck
Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276
OK, show me to where you reached, post some code to know how can I do the next step.
Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276