class BlindWatchMaker1 var _random as Random def main is shared pass cue init base.init _random = Random() def randomString(length as int, alphabet as String) as String test x as BlindWatchMaker1 = BlindWatchMaker1() assert x.randomString(5, 'ab').length==5 s as String = x.randomString(1000, 'a') for c as char in s assert c==c'a' body sb as StringBuilder = StringBuilder() for i as int = 0 .. length CobraCore.noOp(i) c as char = alphabet[_random.next(alphabet.length)] sb.append(c) return sb.toString def foo as String """ """ # test having comments after the doc string but before the 'test' section. test assert true body return ''