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 » Scripting Helpers
Home Search
 

Re: math.randomseed(tick())

Previous Thread :: Next Thread 
mazer246 is not online. mazer246
Joined: 13 Sep 2007
Total Posts: 412
12 Oct 2012 03:14 PM
For some reason when I use that line, my math.randoms only output 1 value... Always the same value and its always in the middle of the range. Anyone know why?
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
12 Oct 2012 03:55 PM
Yes, same for me. Instead, I do this:


math.randomseed(tick()*math.random())
Report Abuse
veerstrong is not online. veerstrong
Joined: 23 Jun 2009
Total Posts: 2450
12 Oct 2012 04:00 PM
Isn't it used for a Psuedo Number Generator?
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
12 Oct 2012 04:02 PM
All random number generators are pseudo-random.

Well, I shouldn't say ALL, since some REAL ones use information like sun brightness, ambient noise, etc. (Nature has true randomness)
Report Abuse
mazer246 is not online. mazer246
Joined: 13 Sep 2007
Total Posts: 412
12 Oct 2012 04:15 PM
So many weird problems with ROBLOX... Thanks a ton crazyman
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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