P
Pao
My code works in this way:
I declared a static array in a class (public static int[] GVetRandom =
new int[3]
that in a for cycle I fill with random numbers.
The array gets cleared (clear method) and refilled at each turn of
cycle.
On my developing pc, the same sequence of random numbers was repeated
from on turn of cycle to the other; I put some Application.DoEvents()
and all gone well.
But in the customer's pc, the array are generated exactly the same
yet, it gives 2 or 3 duplicates
for example:
1st turn in teh for: the array is 10-56-33
2nd turn in teh for: the array is 34-22-54
3rd turn in teh for: the array is 34-22-54
4th turn in teh for: the array is 34-22-54
5th turn in teh for: the array is 65-31-24
what could it be???
I declared a static array in a class (public static int[] GVetRandom =
new int[3]
that in a for cycle I fill with random numbers.
The array gets cleared (clear method) and refilled at each turn of
cycle.
On my developing pc, the same sequence of random numbers was repeated
from on turn of cycle to the other; I put some Application.DoEvents()
and all gone well.
But in the customer's pc, the array are generated exactly the same
yet, it gives 2 or 3 duplicates
for example:
1st turn in teh for: the array is 10-56-33
2nd turn in teh for: the array is 34-22-54
3rd turn in teh for: the array is 34-22-54
4th turn in teh for: the array is 34-22-54
5th turn in teh for: the array is 65-31-24
what could it be???