Groovy web console

subscribe to the feed Subscribe
to this
site
Who gets to have all the fun? (via #groovywebconsole)
tweet this snippet Tweet
this
script

Who gets to have all the fun?

Published 4 weeks ago by Funcorp with tags random
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def fungineers = ['Colin', 'Greg', 'Jon', 'Mike']
def fundex = new Random().nextInt(fungineers.size())
print "${fungineers[fundex]} gets to have all the fun!"