generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: math.randomseed(tick()%1*1e6)

Previous Thread :: Next Thread 
Barbariancreep is not online. Barbariancreep
Joined: 23 Nov 2012
Total Posts: 1096
31 Dec 2015 03:44 AM
tick()%1*1e6

What? can someone explain why all of those are there, or is it best just to roll with it with a little understanding (that I hope you will provide)
Report Abuse
DrHaximus is not online. DrHaximus
Joined: 22 Nov 2011
Total Posts: 8410
31 Dec 2015 03:49 AM
*waits for casualist*
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
05 Jun 2016 03:39 AM
https://forum.roblox.com/Forum/ShowPost.aspx?PostID=175210875&PageIndex=2

Sorry about the wait.
Report Abuse
AutoCarrot is not online. AutoCarrot
Joined: 24 Oct 2013
Total Posts: 5588
05 Jun 2016 04:27 AM
Well tick() gets the time since the epoch

% performs a modulo function on tick() and 1
https://en.wikipedia.org/wiki/Modulo_operation

1e6 is a big number. Like, really big


WolfgangVonPrinz // Private Drive - Residents Only


WolfgangVonPrinz // Private Drive - Residents Only
Report Abuse
AutoCarrot is not online. AutoCarrot
Joined: 24 Oct 2013
Total Posts: 5588
05 Jun 2016 04:31 AM
Oh, and I imagine the way he's done it like that is so it provides a different output each time. The problem with math.random(tick()) is that tick() as a number, changes very little, and so you'll get the same answer out of it, as it's pretty much the same number (The extra 100 or so each time you run it is negligible), going through the same algorithm, so you get the same answer.




WolfgangVonPrinz // Private Drive - Residents Only
Report Abuse
MiniNob is not online. MiniNob
Joined: 14 May 2013
Total Posts: 822
05 Jun 2016 04:37 AM
a million dollar is big money
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
05 Jun 2016 04:39 AM
"Oh, and I imagine the way he's done it"

You don't need to imagine. I actual explained it; also your paraphrasing is terrible.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image