|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
ASP/VBScript to randomly select name from csv?
<!--Newbie warning-->
I've got a csv file with names, addresses, emails, etc. I've been asked to randomly select a name from a csv file. I've found plenty of RandNum examples, but I'm not sure how to apply it to these names. Can anyone point out a sample I could use? TIA! Scott Scott Gordo wrote:
> <!--Newbie warning--> Sorry, buy RandNum I meant Randomize.> I've got a csv file with names, addresses, emails, etc. > I've been asked to randomly select a name from a csv file. > I've found plenty of RandNum examples, but I'm not sure how to apply it > to these names. > Can anyone point out a sample I could use? > TIA! > Scott /s Scott Gordo wrote:
> Scott Gordo wrote: Read the file into an array. Use a random number (generated so that it >> <!--Newbie warning--> >> I've got a csv file with names, addresses, emails, etc. >> I've been asked to randomly select a name from a csv file. >> I've found plenty of RandNum examples, but I'm not sure how to apply it >> to these names. >> Can anyone point out a sample I could use? >> TIA! >> Scott > > Sorry, buy RandNum I meant Randomize. > /s > is within the bounds of the array) to index into the array. MikeR |
|||||||||||||||||||||||