1 import java
.util
.Random
;
6 static int PosX
= 0, PosY
= 0, ValS
= 0, ValP
= 0;
15 public int getPosX () {
19 public int getPosY () {
23 public int getValS () {
27 public int getValP () {
31 public void changePos ( int px
, int py
) {
36 public void changeVal ( int vs
, int vp
) {
43 Random rand
= new Random();
45 int newPosX
= PosX
+ (int)Math
.round(rand
.nextGaussian())
48 rand
.setSeed(rand
.nextLong());
50 int newPosY
= PosY
+ (int)Math
.round(rand
.nextGaussian())
53 if ( newPosX
< Global
.boundX
&& newPosX
>= 0)
55 if ( newPosY
< Global
.boundY
&& newPosY
>= 0)