<p>Can anyone provide some pseudo code for a roulette selection function? How would I implement this: I don't really understand how to read this math notation.I want General algorithm to this.</p>

There are 2 steps to this: First create an array with all the values on the wheel. This can be a 2 dimensional array with colour as well as number, or you can choose to add 100 to red numbers.
Then simply generate a random number between 0 or 1 (depending on whether your language starts numbering array indexes from 0 or 1) and the last element in your array.
Most languages have built-in random number functions. In VB and
```
VBScript
```
the function is
```
RND()
```
. In Javascript it is
```
Math.random()
```
Fetch the value from that position in the array and you have your random roulette number.
Final note
: don't forget to seed your random number generator or you will get the same sequence of draws every time you run the program.