Within Excel, a range such as this can be passed directly into the sample parameter.
CTQL.CTRangeData GenericDiscreteDist_sample;
int[] arrBGenericDiscreteDist_sample = {
34,
36,
7,
29,
32,
18,
15,
20,
24,
22,
23,
32,
27,
39,
44,
37,
42,
9,
7,
41,
48 // Array Data
};
CTQL.IntVector arrGenericDiscreteDist_sample =
new CTQL.IntVector(arrBGenericDiscreteDist_sample);
// Second parameter determines whether the array is a column array (false) or a row array (true)
GenericDiscreteDist_sample = new CTQL.CTRangeData(arrGenericDiscreteDist_sample, false);