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
 

randomseed

Previous Thread :: Next Thread 
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
02 Jan 2015 04:01 AM
Let's say I had a script like this:

value = game.Workspace.Value.Value
value = math.random(1,100)

How can I use math.randomseed instead of just math.random?
Report Abuse
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
02 Jan 2015 05:14 AM
Anyone know?
Report Abuse
iNicklas is not online. iNicklas
Joined: 26 Oct 2010
Total Posts: 4031
02 Jan 2015 05:16 AM
value = game.Workspace.Value.Value
value = math.randomseed (x)


3001 R$ / 500,000 R$ - Follow Me On Twitter! @iNicklasRBLX •_•
Report Abuse
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
02 Jan 2015 05:19 AM
What would x be? Because I got 2 values in math.random.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
02 Jan 2015 05:23 AM
math.randomseed does not return a number it is something use for the pattern for the fake random


math.randomseed(1)
print(math.random(-999999999, 999999999)) -->-211234146
math.randomseed(1) --Reset the seed to the same thing it just was
print(math.random(-999999999, 999999999)) -->-211234146
Report Abuse
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
02 Jan 2015 05:24 AM
Oh ok, thanks I understand better now.
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