• Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at \$59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.

Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!

### #ActualServant of the Lord

Posted 10 January 2013 - 10:18 PM

That's avoiding the problem, instead of solving the problem.

Even if rand() is generating the upper bits as all 1's, that's of no consequence if he's modulating the value:

1111114756 % 4000 = 2756

1111118908 % 4000 = 2908

Besides, "time(0) % x" will generate the exact same numbers until a second passes, then it will generate the exact same numbers until another second passes, and so on.

It was a clever suggestion though, so keep 'em coming!

### #1Servant of the Lord

Posted 10 January 2013 - 10:01 PM

That's avoiding the problem, instead of solving the problem.

Even if rand() is generating the upper bits as all 1's, that's of no consequence if he's modulating the value:

1111114756 % 4000 = 2756

1111118908 % 4000 = 2908

Besides, "time(0) % x" will generate the exact same numbers until a second passes, then it will generate the exact same numbers until another second passes, and so on.

It was a good suggestion though!

PARTNERS