start of functions, randstr randnum