Using x-randgen in global context

Using x-randgen within a template context