Hello,
I am trying to random numbers without repititions,
Sadly my intel q9300 is not realy helpful now,
Because the last remining number is not geussable 0.0
well see your self:(Web site project)
>>App_Code>>(VideosC.cs)class>>
//This prepares a DataSet table without data in addition to call a randoming method(ok)
public static DataSet GetVideosRandomly()
{
DataSet rndmDS = null;
rndmDS = VideosC.GetAllVideosDataSet();
rndmDS.Tables[0].Clear();
int[] usedIds = new int[VideosC.GetAllVideosDataSet().Tables[0].Rows.Count];
RandomNumsInArray(usedIds);
for (int i = 0; i < VideosC.GetAllVideosDataSet().Tables[0].Rows.Count; i++)
{
rndmDS.Tables[0].ImportRow(VideosC.GetAllVideosDataSet().Tables[0].Rows[usedIds[i]]);
...
Go to the complete details ...