Added rnd() helpers
Added 'extern' support