Don't remember any RNG involved with the materia system in ffvii. Best gear in the game should be obtained through skill not luck.