Adding random ID generator, and using it in the UI module.