How to assign a random variable from a given list in vbs?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
105 views
I have a list for example:

January
February
March
April
May
June
July
August
September
October
November
December

How do I make the variable here was = a random month from the list?
Is it possible to do this in vbs?
by | 105 views

1 Answer

0 like 0 dislike
Randomize z=array("January","February","March","April","May","June","July","August","September","October","November","December") index=int(rnd*12) if index>11 then index=11 wscript.echo z(index)
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
0 comments
40,796 users