C-version using java.util.Random algorithm.
Now levels are (as far as I can tell) identical to
original Java-version.