class Test def main is shared rand = Random() rand(10, 20) # .error. Cannot call "rand"