I would suggest using JMeter Functions instead. It looks like that _Random() or _RandomString() could be a good choice.
Something like
<gml:lowerCorner>${__Random(0,99,)}.${__Random(0,99,)} ${__Random(0,9,)}.${__Random(1111,9999,)}</gml:lowerCorner>
Should do the trick for you.
It isn't recommended to use Beanshell for heavy scripting. For something once-only or very light like reading configuration file, appending something to the log, etc. it's fine, but several calls to obtain a random number can have negative impact on your test performance. If you need to go down to Java code I'd suggest using JSR223 Sampler (or Pre Processor) and Groovy as language as it provides performance comparative to native Java code.