in reply to Re^2: Is rand() really that slow or am I just using it wrong?
in thread Is rand() really that slow or am I just using it wrong?
it's not faster
It *is* faster than your method.
Not as fast as writing 10MB of a single character for sure, but then you are calling a function, rand 10 million times; it has to be slower.
The only question is; how much faster do you need it to be?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Is rand() really that slow or am I just using it wrong?
by Anonymous Monk on Aug 09, 2013 at 14:06 UTC | |
by BrowserUk (Patriarch) on Aug 09, 2013 at 14:46 UTC |