C
Chuck Insight
Here is my first attempt at populating the hashtable.
dim t as hashtable = new hashtable()
dim k as integer = t.key
dim v as integer = t.value
v = 0
for k = 1 to 200
on error goto bottom
if t.count = 50 then
goto exit
end if
k = int(rnd * 50) +1
v += 1
t.add(k)
:bottom
next k
:exit
dim t as hashtable = new hashtable()
dim k as integer = t.key
dim v as integer = t.value
v = 0
for k = 1 to 200
on error goto bottom
if t.count = 50 then
goto exit
end if
k = int(rnd * 50) +1
v += 1
t.add(k)
:bottom
next k
:exit