I think assigning random numbers into an array would be easy but I'm not sure how to ensure that the 10 random numbers are unique.. (e.g. lower boundary = 0, upper boundary = 15)
the only way I can think of is to compare hear and every value in the array but I hope there's an easier way/function than this
a work around is to try with dictionary objects. easy to check if the random number already exists in the array.
when things gets harder ,the harder gets going
Yes, seems the way around is to compare with already generated data. Use Dictionary to check, if item exist in the dictionary.
Winds of Change
Ganesh, can we check the item from arraylist
some thing like
where a is the random nunber
msgbox arrList.item(a).Exist ?
Im not familiar with dictionary object, so I did a little bit of research.
with the sytax...
object.Add (key, item)
...if I understood it correctly:
1. the 'key' would get the random number
2. use .exist with the keys to make sure all are unique
3. then pass all keys to an array
so what do i do with the 'item'?