Being able to produce differnet random numbers in a loop

Hi there
I am writing a game with some basic AI elements. The enemies know there position and the players position and so are able to rotate and follow the player around etc.

The idea is that when an enemy gets within a radius of the player they calculate a new random angle and move that way for 3 seconds then continue following the player. The effect with a single enemy works fine and looks OK.

The next thing I need to do is if two enemies are near each other they produce a random angle and move away from each other for a small amount of time. If I don't do this then it is possible to have all the enemies running into each other and acting the same.

timeFactor counts the time between frames being drawn and is decreased to be able to distinguish when a certain amount of time has passed. It is also used to allow everything to happen within the same time frame such as walking, running, shooting etc.

in the enemy class it resets to 0 when nothing is happening to the enemies. When the enemy collides with either the player or another enemy it sets its self to 3.0 then decreases when the 3 seconds is done.

The enemy is a class I haven't thought about that, if I assign a different rand to each enemy class would that generate different numbers or would it still generate the same number for each?

I can put up more of my full code tomorrow(I'll have to edit it as it is quite long) all help appreciated

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...