pesc.c
size_t* GenExchangeTable(size_t len)
{
	size_t* exTable = malloc((len - 1) * sizeof(size_t));
	for (size_t i = len - 1; i > 0; i--)
		exTable[len - 1 - i] = random() % (i + 1);
	return exTable;
}
// Generate exchange table for (De)Shuffling
Generate exchange table for (De)Shuffling
Generate exchange table for ( De ) Shuffling
size_t* GenExchangeTable(size_t len)
{
	size_t* exTable = malloc((len - 1) * sizeof(size_t));
	for (size_t i = len - 1; i > 0; i--)
		exTable[len - 1 - i] = random() % (i + 1);
	return exTable;
}
size_t * GenExchangeTable ( size_t len ) { size_t * exTable = malloc ( ( len - 1 ) * sizeof ( size_t ) ) ; for ( size_t i = len - 1 ; i > 0 ; i -- ) exTable [ len - 1 - i ] = random ( ) % ( i + 1 ) ; return exTable ; }
Generate exchange table for (De)Shuffling
Generate exchange table for ( De ) Shuffling