
## A1.2. **Generación Aleatoria De Espacios**

Random random = new Random(); 
Distribution distribution = new UniversalDistribution(); 
// Select the number of cells of the space int numCells = distribution.GetValue(Environment_L.MIN_CELLS); 
// Select the maximum actions available for the selected number of cells int maxActions = Math.min(numCells, Environment_L.MAX_ACTIONS); 
// Select the number of actions of the space int numActions = distribution.GetValue(Environment_L.MIN_ACTIONS, 
maxActions); 
// Constructs the space with the number of cells and actions selected String description = ""; 
// Construct each cell for (int cell = 0; cell < numCells; cell++) { 
if (cell != 0) 
 description += "|"; 
// For each cell, generate each action for (int action = 1; action < numActions; action++) 
 { 
 int movements = random.nextInt(numCells); **char** movement = random.nextInt(2) == 0 ? '+' : '-'; description += action; 
 **for (int** index = 0; index < movements; index++) 
 description += movement; 
 } 
} 
return description; 

## A2. **Referencias**

[Dowe & Hajek 1997] D L Dowe, A R Hajek (1997), "A computational extension to the Turing Test", Technical Report \#97/322, Dept Computer Science, Monash University, Melbourne, 9pp, 1997. http://www.csse.monash.edu.au/publications/1997/tr-cs97322-abs.html.

[Dowe & Hajek 1998] D L Dowe and A R Hajek (1998). A non-behavioural, computational extension to the Turing Test, pp101-106, Proceedings of the International Conference on Computational Intelligence & Multimedia Applications (ICCIMA'98), Gippsland, Australia, February 1998. 

[Dowe 2008] Dowe, D.L. "Foreword re C. S. Wallace", Computer Journal, 51, 5, pp. 523 - 
560, September, 2008, Christopher Stewart WALLACE (1933-2004) memorial special issue. 

[Embretson & Mc Collam 2000] Embretson, S.E. y McCollam, K.M.S. (2000). Psychometric approaches to understanding and measuring intelligence. En R.J. Sternberg (Ed.). Handbook of intelligence (pp. 423-444). Cambridge, UK: Cambridge University Press. 