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: A more effective randomseed

Previous Thread :: Next Thread 
zins is not online. zins
Joined: 14 Jan 2011
Total Posts: 3394
19 Feb 2013 06:48 AM
[ Content Deleted ]
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
19 Feb 2013 06:53 AM
inb4onemorewhatismeaningofrandomdiscussion
Report Abuse
zins is not online. zins
Joined: 14 Jan 2011
Total Posts: 3394
19 Feb 2013 07:00 AM
[ Content Deleted ]
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
19 Feb 2013 07:04 AM
Well people usually likes to discuss what actually is randomness. Some say that something that number that doesn't repeat several times in row is random, but some say that number that you don't except is random, even if it's like 6 times in row.
Report Abuse
Garnished is not online. Garnished
Joined: 09 Apr 2012
Total Posts: 12695
19 Feb 2013 07:22 AM
>not random enough

Moar math.
Report Abuse
agent767 is not online. agent767
Joined: 03 Nov 2008
Total Posts: 4181
19 Feb 2013 10:52 AM
print(math.random(1,6),math.random(1,6))

>6, 6

UMG RUBLUX FIX DAT RANDOM CUZ IMPOSSIBRU NOT RNDOM ENOUGH CANT RETURN 2 NUMBERZ SAME !!!111!!1




Oh, I once threw six dices with each one being a 6 soooo...
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
19 Feb 2013 11:17 AM
I have a much more random number generator in my game "Catalog Brawl". If I were at a computer atm I'd give it to you. but I'm not. :(
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
19 Feb 2013 11:29 AM
math.randomseed((tick()^0.25)^time()*(#game.Players:GetChildren()))
Report Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
19 Feb 2013 12:47 PM
zins can scrktp?

ok zins ur on my list of the c7ger thing now
Report Abuse
Positr0n is not online. Positr0n
Joined: 26 Nov 2011
Total Posts: 80
19 Feb 2013 04:36 PM
random = 4

Guaranteed to be random every time.
Report Abuse
Joalmo is not online. Joalmo
Joined: 28 Jun 2009
Total Posts: 1160
19 Feb 2013 07:37 PM
Guaranteed to be stolen from xkcd every time
Report Abuse
Seranok is not online. Seranok
Joined: 12 Dec 2009
Total Posts: 11083
19 Feb 2013 08:33 PM
Basically the two "random" things are tick() and Workspace.DistributedGameTime
Report Abuse
Tr0ub4dor is not online. Tr0ub4dor
Joined: 10 Feb 2013
Total Posts: 200
19 Feb 2013 08:35 PM
Correct horse battery staple
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
19 Feb 2013 08:37 PM
function math_random(min,max)
return math.floor(((workspace.DistributedGameTime^3+(tick()/8000*4.567/2)^0.125/4*9/5*13) % (max+1-min)) + min)
end
Report Abuse
Seranok is not online. Seranok
Joined: 12 Dec 2009
Total Posts: 11083
19 Feb 2013 08:38 PM
But really the whole idea of "not random enough" is kinda pointless unless you're writing crypto algorithms and ACTUALLY know what you're doing. If you are eyeballing the numbers, do not trust yourself on whether the numbers are random or not.
Report Abuse
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
19 Feb 2013 08:50 PM
Seranok and his "Multiple proxys" breaking my connection to roblox.com and giving 503 errors.

~ Moo logic = logical logic ~
Report Abuse
LPGhatguy is not online. LPGhatguy
Forum Moderator
Joined: 27 Jun 2008
Total Posts: 4725
19 Feb 2013 11:34 PM
Apparently this was my seed function in my Perlin noise generator a long time ago, and it took four arguments, one of which could be tick() I suppose:

math.randomseed((x * seed + y * i ^ 1.1 + 14) / 789221 + 33 * x + 15731 * y * seed)
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