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
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

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
395
S
231
G
88
Posts: 24,367
Reputation: 193,684

Post » Thu Nov 07, 2013 4:09 pm

Thank you very much.
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986


Return to Construct 2 General

Who is online

Users browsing this forum: David181 and 9 guests