Added code for randomly selecting a tool version