+Resolve a bug in Pattern. The value of attribute was between 1 and 7
but the random function is between 0 and 6 ("(int) (Math.random() * 7
)")