You have to separate the two notions of what a function is: you can use integral for a mathematical function, but randn is a Matlab function.
So you need to explain what would you even mean by taking the integral of the randn function.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!