ⅲ鳫 璞鳬�

蔬褞鱠 Shufle 鵫�   ⅲ鳫 璞鳬�.
� �蓍�鴣 瑯柀  � 矜褝�  蒡鳬� �  ⅲ鳫 鴈� � 鵫襃
(� c_targil6).

蕀鳬� 蒡褄鳫 �-Shufle 蓍脩 蓖 蓊琺�:
1. #include � 砌￢�.
2. iseed=1 ￢橳� 蒡棏� 鴕鵁� ⅲ鳫 璞鳬� 硅� 蒡� 0 
    �ⅲ � 葢肄� 硅褝� 碚�� 裄 鵫褻�  鱚� 蕀�: RAND_MAX,
    蔬褞� 蒡瓏銕� 蓚� srand(iseed) .
3.  rand()   蔬褞鱠 蒡鉞鵁� ⅲ鳫 Pseudo-Random ⅲ鳫 璞鳬� ��瑯.
    蓖 鳫 ⅲ鳫 璞鳬� ��瑯 蓚鱧� 裝� 鳫 碚錏� �栁� 鰀鴿裔鳫 褌� 矼
     璞鴾 �粽. �� 瑙 礪碪 鴿 栁褝 璞鱧� �粽 瑯 � 鴿 磅鱧� � 聶�
     碪 魲碾 珸�.
4. a[i]=(float)rand()/(float)RAND_MAX; - 鰀��  �- RAND_MAX�肓 �蔗硅� 瓏
    蒡� 萵鳫 ⅸ 鵫聿 珸� �� 鵫聿 珸�: �琺�  (ⅲ ⅸ黑�,0) 
    �琺� (0,1).
5. 蔔裔� Shufle_c.txt 鸙鴈 瓏 蔬褞鱠 Shufle(...)   � �蓍�鴣 �- c_targil6  
    褞橆 �蕀橫� 砌 碚鱚� 褸褻鳫 �褸 � c_targil10-  (顏鴟� �)

To add the following include statements.
========================================
#include <stdlib.h>
#include <math.h>

To replace the old shufle file.
===============================
// *****************************************************8
void shufle(int ind_case, int n, float a[20])
{
	int i;

	switch (ind_case)
	{
		case 1:
		a[0]=999;
		a[1]=21;
		a[2]=5;
		a[3]=37;
		a[4]=2;
		break;
		// ------------------
		case 2:
			a[0]=999;
			a[1]=44;
			a[2]=55;
			a[3]=12;
			a[4]=42;
//
			a[5]=94;
			a[6]=18;
			a[7]=06;
			a[8]=67;
			break;
			// ------------------
		case 3:
unsigned int iseed; // a seed for random number generator.
    	               iseed=1;      
// for the same iseed values the sequence of the random 
// numbers generated is the same.
srand(iseed); // set the iseed for the random 
  // number generator.
                            a[0]=999; //doesn't participate in the sorting.
		for(i=1;i<=n;i++)
		{
			a[i]=(float)rand()/(float)RAND_MAX; 
			// rand() generates a pseudo-random 
			// in the interval (0,RAND_MAX)
			// a[i] – receives numbers in the interval (0 1).
		}
		break;

	}
}
// ******************************************************