Tag Archives: array

Shuffle an Array in C#

As part of a basic guessing game I wanted to be able to shuffle an array of n chars into a random order. The method I decided to use was the following. Create a loop to iterate n times (where … Continue reading

Posted in Programming | Tagged , , , , , | 3 Comments

Fibonacci Sequence into an Array in C#

The Fibonacci sequence, if you don’t already know, is built up by adding the two previous numbers to create the next in the sequence: I.e. 0, 1, 1, 2, 3, 5, 8, 13… etc As the sequence goes on indefinitely … Continue reading

Posted in Programming | Tagged , , , , | Leave a comment