int nextInt(Random random, int nearbySize)
random- never null
nearbySize- never negative. The number of available values to select from. Normally this is the size of the value range for a non-chained variable and the size of the value range (= size of the entity list) minus 1 for a chained variable.
0 <= x < nearbySize
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.