So, I\'m trying to create a random vector (think geometry, not an expandable array), and every time I call my random vector function I get the same x value, though y and z a
I had the same problem exactly. I fixed it by moving the srand() call so it was only called once in my program (previously I had been seeding it at the top of a function call).
Don't really understand the technicalities - but it was problem solved.