of     2   
chevron_rightchevron_rightchevron_right

spinywind
#228365538Sunday, December 03, 2017 5:26 AM GMT

math.random() is not random so.. and math.randomseed(tick()) isnt either.
Soybeen
#228365646Sunday, December 03, 2017 5:31 AM GMT

Depends on how you define random. Beyond your capacity to anticipate? In that sense there are a lot of random things, like the weather. As for "true random", the noise at the edge of the universe is pretty random. We haven't found any patterns in it.
spinywind
#228365704Sunday, December 03, 2017 5:33 AM GMT

if i wanted to generate a random number 1,10 how would I do it without math.random()?
Dollar500
#228365787Sunday, December 03, 2017 5:36 AM GMT

Nothing is random
libpng
#228366700Sunday, December 03, 2017 6:11 AM GMT

"if i wanted to generate a random number 1,10 how would I do it without math.random()?" Custom RNG or a web service.
VineyardVine
#228366992Sunday, December 03, 2017 6:22 AM GMT

Find a online ###### counter and use httpservice to get numbers
VineyardVine
#228367062Sunday, December 03, 2017 6:24 AM GMT

######
gryphunk2
#228367157Sunday, December 03, 2017 6:27 AM GMT

u can't the closest possible thing is math.randomseed(tick()) heccled by the master heccler again
Soybeen
#228371241Sunday, December 03, 2017 9:13 AM GMT

@Dollar500 That's not something you should be so eager to believe. True randomness does not exist in classical physics where randomness is necessarily a result of forces that may yet be unknown, but exist. The quantum world, however, is intrinsically truly random.
OzzyFin
#228371389Sunday, December 03, 2017 9:22 AM GMT

lavalamps are great
JoshRBX
#228373158Sunday, December 03, 2017 10:50 AM GMT

whats wrong with math.randomseed(tick()) once at the top of your code and then math.random(10) also if thats not good enough for whatever reason, try random . org
128Gigabytes
#228373801Sunday, December 03, 2017 11:18 AM GMT

Nothing is random x2
Flubberlutsch
#228374173Sunday, December 03, 2017 11:35 AM GMT

We all know the issues of math.random(), but there's a simple way to prevent it: Just preheat the RNG lol. E.g. function rng(min,max) if max then return math.random(min,max) elseif min then return math.random(min) else return math.random() end end function random(min,max) math.randomseed(os.time()) for i=1,1000 do rng(min,max) end return rng(min,max) end This will work exactly the same as the math.random() function, meaning no parameters = random number from 0 to 1, one parameter = random integer from 1 to max, two parameters = random integer from min to max. Also, using tick() with randomseed is bad practice since the RNG uses tick in a way to calculate the random number. This would result in the same random number multiple times in a row. Keep in mind: Some things like DataStore actions (SetAsync, GetAsync, etc) and similar reset the randomseed and pulling an RNG request after such a thing will always return the same number. Use the function above to get a truly random number lol.
JarodOfOrbiter
#228375594Sunday, December 03, 2017 12:37 PM GMT

"The quantum world, however, is intrinsically truly random." That's what they say, but why is it? In a universe that has until the past twenty years been governed solely by strict and definable laws, it's hard to comprehend how something can be truly random. I'll never say it isn't truly random. But I will say that there can always be something we're missing.
cabbler
#228375924Sunday, December 03, 2017 12:50 PM GMT

You can do a GetAsync to site random org. But algorithms are good enough for me ... someone posted this before and i'll share it: math.randomseed(tick()%1 * 1e7) print(math.random(10))
Soybeen
#228376327Sunday, December 03, 2017 1:05 PM GMT

To think that anybody knows enough to say in confidence "there's no such thing as random" is ridiculous. 😅 The idea of predetermined fate and that "nothing is random" is kind of silly to even bother yourself with, considering the scope of humanity's understanding about.. anything. Also, how is seeding that on os.time() different than seeding with tick() besides that os.time() returns integers? If anything, isn't os.time() a worse candidate considering its consistency? From what I understand, seeding on tick() is not bad practice unless you know something about the source code for randomseed() that I don't. Seeding on the current time is how I see it done almost exclusively, and I've never had an issue with numbers appearing back-to-back unless I'm running it tens of thousands of times per second.
Spectrum555
#228377504Sunday, December 03, 2017 1:43 PM GMT

https://www.youtube.com/watch?v=9rIy0xY99a0 thank me later
nixpc
#228377526Sunday, December 03, 2017 1:44 PM GMT

Nothing is random so: no
Dollar500
#228377815Sunday, December 03, 2017 1:53 PM GMT

@Soybeen I believe that the quantum world is just particles in the 4th dimension popping into existence in our demension, so it seems as if it is random. String theory says this... @Jarod Exactly
Soybeen
#228378489Sunday, December 03, 2017 2:15 PM GMT

Wellllll the 4th dimension is time, and that's well established, soooo, no.
JarodOfOrbiter
#228379187Sunday, December 03, 2017 2:34 PM GMT

Welllll the fourth dimension is still up for grabs. It could be time, but that's literally just our perceptions. I disagree with the popping in and out of existence theory, but I also highly disagree with the fourth dimension being time. Time is a dimension, but it doesn't have to be the fourth. Dimensions are, again, up for grabs.
mattscy
#228379355Sunday, December 03, 2017 2:38 PM GMT

we are all part of a simulation
Soybeen
#228379403Sunday, December 03, 2017 2:39 PM GMT

As far as as the spacetime model is concerned, time is the fourth dimension. By fourth I don't mean that it comes in a sequence after the 3 spatial dimensions, just that it is one of four required to satisfy spacetime-entrenched theorems and whatnot
hollowlucas
#228379408Sunday, December 03, 2017 2:39 PM GMT

Nothing is random. math.random() is pseudorandom
Soybeen
#228379462Sunday, December 03, 2017 2:41 PM GMT

Stop saying that nothing is random. Do your research.

    of     2   
chevron_rightchevron_rightchevron_right