floor random

Discussion and feedback on Construct 2

Post » Thu Nov 07, 2013 5:04 am

I'm just curious, is using floor random rather then just random any more efficient if it doesn't matter if the number returned is whole or not? I use random several hundred times in my project, mostly for timing new spawns and such, so I was just wondering if it would make any difference as far as efficiency goes.

Thanks,
Dennis
B
62
S
20
G
56
Posts: 1,077
Reputation: 36,021

Post » Thu Nov 07, 2013 2:11 pm

It will have absolutely no effect on efficiency. It's just whether you want to get a random whole number or not.
Scirra Founder
B
405
S
239
G
91
Posts: 24,765
Reputation: 197,454

Post » Thu Nov 07, 2013 4:09 pm

Thank you very much.
B
62
S
20
G
56
Posts: 1,077
Reputation: 36,021


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 5 guests