Really man! Can't you see that the Kevin's were trying to get the OP to provide the code that they have been trying? This is a learning forum, not a code writing service. Of course, you just gave him the answer to what could have been school work.
Please do not do that again, it completely undermines our efforts to have the OPs learn from their questions.
Regards,
MODERATOR
I apologize.
Did you look at the code?
All it does is see if there are any 0-9's present within the "name" of a file.
If so it omit's everything but them.
And splits them into an array, and returns a random one of them
So you see it: "can any one give a code for spilitting a numerical value randomly from a input file".
I was trying to prove to him that with such a vague question, you'll get a vague (most likely not effective) answer.
(It probably doesn't even work)
But I knew when I posted it, that it
may be out of line.
Making fun of OP's.
For that I apologize.
Won't happen again.