(Updates shares)
** Shares in miners of precious metals Randgold,Fresnillo, Acacia and Centamin up2.3-3 pct as gold rallies back to 3-wk highs
** Randgold also helped by PT raise by Citigroup to 4745pfrom 4644p
** Shares in London's major base metals miners BHP,Rio Tinto, Anglo American, Glencore recover earlier losses
** Anglo up 0.7 pct while other three stocks down 0.2-0.8pct
** China's devaluation of yuan hurt prices of copper, whiledoubts of a September rate hike by the U.S. Fed boost gold
** Among FTSE midcaps, Centamin, Acacia among topgainers, Petra and Lonmin shed earlier losses totrade up
** UK mining index marginally up after fallingas much as 2.7 pct in early trade
** Mining index fell as much as 2 pct on Monday beforeclosing up 1.6 pct, turning higher on hopes of stimulus afterweak data in China (venkateshasoumithri.mamidipudi.thomsonreuters.com@reuters.net)