getting current time to seedRnd

About Monkey 2 Forums Monkey 2 Programming Help getting current time to seedRnd

This topic contains 1 reply, has 2 voices, and was last updated by  Pakz 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15709

    abakobo
    Participant

    I’m trying to find a kind of time value that I can convert into a ULong for seeding the RNG.

    I see Time.Now() or the libc time_t struct but their precision is seconds.

    Isn’t there some kind of time value containing at least 1/100 of seconds? Or do I need to combine millisecs() with Time.Now() to achieve my goal?

    #15760

    Pakz
    Participant

    I have been using the microsecs() command to seed the rndseed. This seems to work alright so far. I can not really find or recall using time and date features a lot yet.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.