Jump to content


Photo

Random numbers not random?


  • Please log in to reply
2 replies to this topic

#1 thijsmie

thijsmie

    GMC Member

  • GMC Member
  • 22 posts

Posted 31 July 2012 - 10:31 AM

I made an encryption application in Studio, and I noticed something strange. I always get the same sequence of random numbers when I run the application (both the run button and exported application)

I hope this is not intentional, because now my application is not safe at all!

Thijs Miedema
  • 0

#2 Chronic

Chronic

    Administrator

  • Global Moderators
  • 2713 posts
  • Version:GM:Studio

Posted 31 July 2012 - 10:37 AM

You must call the function randomize() at the start of your game to randomize the seed it will use. This is no longer done for you.
  • 0

#3 thijsmie

thijsmie

    GMC Member

  • GMC Member
  • 22 posts

Posted 31 July 2012 - 10:39 AM

Oh, okay.. I didn't know that..Thanks for the quick reply!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users