Windows form application question

Page 1 of 1

4 Replies - 835 Views - Last Post: 25 September 2013 - 03:27 AMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'http://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=329865&amp;s=6b62d00b8981fccc143be5f4f6d447f9&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

#1 Pistol Pete

Reputation: 0
• Posts: 2
• Joined: 24-September 13

Windows form application question

Posted 24 September 2013 - 02:12 AM

How would I go about creating code making the program generate a random vowel? Any assistance would be appreciated.
Is This A Good Question/Topic? 0

Replies To: Windows form application question

#2 Pistol Pete

Reputation: 0
• Posts: 2
• Joined: 24-September 13

Re: Windows form application question

Posted 24 September 2013 - 02:17 AM

^ Specific vowels (with a picture) but in random order.

#3 MrShoes

Reputation: 331
• Posts: 512
• Joined: 13-June 12

Re: Windows form application question

Posted 24 September 2013 - 02:43 AM

Have a collection (list, array, whatever) of char types, each with the vowels you want (remembering that upper case is a different character). Use the Random class to generate a random number between 0 and the upper bound of your collection. Get the char at that point in the collection.

#4 synlight

Reputation: 90
• Posts: 582
• Joined: 14-September 11

Re: Windows form application question

Posted 24 September 2013 - 05:23 AM

MSDN is always very helpful for me. Here is the Random class..

System.Random Class

#5 RexGrammer

• Coding Dynamo

Reputation: 183
• Posts: 785
• Joined: 27-October 11

Re: Windows form application question

Posted 25 September 2013 - 03:27 AM

Just remember that the upper bound of the array/list is not the same as the amount of objects in that array/list, because every collection starts with the index 0.

I didn't quite understand your second post? How do you mean with a picture? Could you explain it a bit better, or give a input/output example?