def list = []while (list.size()<6) { def num = new Random().nextInt(45)+1 if (!list.contains(num)) list << num}println list
Labels: Daily, Groovy
Subscribe to Post Comments [Atom]
Why kopi house? The word kopi means coffee in our dialect and since Java symbolic icon is a cup of coffee, so this is why I named my blog as kopi house (Java with local favour) ; )
View my complete profile
Subscribe toPosts [Atom]