Posts Tagged ‘functions brazil brazilian brazilians concatenate subst’

Brazilians!

November 23, 2007

This was Mr Polland’s excellent program that I converted in to VB (and am still a bit too excited about).

It has an array of your names, an array of brazilian endings, and it concatenates a random ending onto a substring of your name.

The point of the lesson is to do with Functions. The random function is called with two parameters (low and high) andit then generates a random number between those two. In the program I use that random number to pick a brazilian ending and put it onto your name.

Here is a screenshot:

brazilian-program.jpg

Advertisements