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
 

Need a good randomizer

Previous Thread :: Next Thread 
Randcomo28 is not online. Randcomo28
Joined: 01 Jul 2015
Total Posts: 6850
12 Jul 2016 02:18 AM
When players joins, it inserts the user into the table Plrs. It seems to choose the same user a lot.

Services = {
['Plrs'] = {},
['Players'] = game:service'Players'
}

local player = math.random(1,#Services.Plrs)
local Fadious = Services.Players:findFirstChild(Services.Plrs[player])



"True Story" - Tai Lopez
Report Abuse
dev_Alekz is not online. dev_Alekz
Joined: 14 Sep 2013
Total Posts: 171
12 Jul 2016 02:20 AM
Did you know that Apple's shuffle program used to use true randomness (or extremely close, anyway) but stopped because users thought there were patterns and it wasn't truly random? Apple made it so that it emulated randomness but wasn't actually random.

I don't think it's a problem in the randomizer, I think it's just a natural problem with randomness.
Report Abuse
TheMesgi is not online. TheMesgi
Joined: 03 Mar 2012
Total Posts: 360
12 Jul 2016 02:21 AM
Services = {
['Plrs'] = {},
['Players'] = game:service'Players'
}

math.randomseed(tick())
local player = math.random(1,#Services.Plrs)
local Fadious = Services.Players:findFirstChild(Services.Plrs[player])
Report Abuse
TheMesgi is not online. TheMesgi
Joined: 03 Mar 2012
Total Posts: 360
12 Jul 2016 02:24 AM
@guy who talked about apple
ye but brain likes patterns and likes finding nonexistent ones. like conspiriacy theorists.

but my thing work for example

randomseed = 22
random list = 3 1 2 4 every time
but if you change it to 44, the results different
Report Abuse
Randcomo28 is not online. Randcomo28
Joined: 01 Jul 2015
Total Posts: 6850
12 Jul 2016 02:28 AM
"math.randomseed(tick())"

I'll try that out. Thanks



"True Story" - Tai Lopez
Report Abuse
doggy00 is not online. doggy00
Joined: 11 Jan 2011
Total Posts: 3571
12 Jul 2016 04:30 AM
math.randomseed(tick()%1*1e6)


--game.Players.doggy00.Life:remove() error- Life is not a valid member of Player
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