Problem reading random noise generator

You're right, I should, thank you. Should I replace rand() with the noise generator?