question: void compute ( ) { if ( random . nextBoolean ( ) ) { value = value + random . nextInt ( variation ) ; ask = value + random . nextInt ( variation / 2 ) ; bid = value + random . nextInt ( variation / 2 ) ; } else { value = value - random . nextInt ( variation ) ; ask = value - random . nextInt ( variation / 2 ) ; bid = value - random . nextInt ( variation / 2 ) ; } if ( value <= 0 ) { value = 1.0 ; } if ( ask <= 0 ) { ask = 1.0 ; } if ( bid <= 0 ) { bid = 1.0 ; } if ( random . nextBoolean ( ) ) { int shareVariation = random . nextInt ( 100 ) ; if ( shareVariation > 0 && share + shareVariation < stocks ) { share += shareVariation ; } else if ( shareVariation < 0 && share + shareVariation > 0 ) { share += shareVariation ; } } }
target:  Compute the new evaluation...