Spawn with random range

ComputerWareComputerWare Member Posts: 10
edited November -1 in Working with GS (Mac)
Hi!

I have this function that spawn an actor every random(0.8,1.7) second. But when it have set its time to ex 1.2 it keeps using 1.2, and doesn't run it again, so it could be like: 1.2 - 1.6 - 0.9 - 1 and so on...

Can any one tell me how to do this???

/Chris

Comments

  • Rob2Rob2 Member Posts: 2,402
    Random only produces integers so you need to perform the relevant maths to get the results you need.
  • ComputerWareComputerWare Member Posts: 10
    can i use every random(8,17)/10 second ???
Sign In or Register to comment.