of     1   

TradedSouls
#226572936Thursday, October 19, 2017 7:36 PM GMT

local hash = math.random(1,9) + math.random(1,9) + math.random(1,9) finishedhash = hash , hash , hash print(finishedhash) This should print a random 9 digit number, but instead it just prints any didget number ranging from 1-3 didgets and being the integers 1-9. Makes me think it's adding the hashes instead of combining them as terms, any way to fix? Thanks :) [R$275] Kleptomaniac
TradedSouls
#226572967Thursday, October 19, 2017 7:37 PM GMT

lol "didget". Anyways, bump. Thanks for the help in advance. :) [R$275] Kleptomaniac
TradedSouls
#226573045Thursday, October 19, 2017 7:40 PM GMT

loooking for a nice answer if any1 knows. [R$275] Kleptomaniac
LaeMVP
#226573072Thursday, October 19, 2017 7:40 PM GMT

local finishedHash = hash + hash + hash
TradedSouls
#226573111Thursday, October 19, 2017 7:41 PM GMT

Did that as well and that seems to print a three digit number always. [R$275] Kleptomaniac
Scrippa
#226573639Thursday, October 19, 2017 7:57 PM GMT

local hash = tostring(math.random(1,9))..tostring(math.random(1,9))..tostring(math.random(1,9)) finishedhash = tonumber(hash..hash..hash) print(finishedhash) however if you run it you'll notice it is actually something like 987987987 since the variable hash doesn't return a new 3 digit number each time you call it, you'll have to use a function and use a returned result to solve this problem function hash() local hash = tostring(math.random(1,9))..tostring(math.random(1,9))..tostring(math.random(1,9)) return hash end finishedhash = tonumber(hash()..hash()..hash()) print(finishedhash)
TradedSouls
#226573735Thursday, October 19, 2017 8:00 PM GMT

Yea I ran into that problem and had the same solution, thanks. :] [R$275] Kleptomaniac
TradedSouls
#226573839Thursday, October 19, 2017 8:02 PM GMT

I've never really used return, but I'm guessing this is how i'd do it? local hash = nil local function hash() local hash = tostring(math.random(1,9))..tostring(math.random(1,9))..tostring(math.random(1,9)) return hash = hash end [R$275] Kleptomaniac
TradedSouls
#226573878Thursday, October 19, 2017 8:03 PM GMT

Then combine the rest of the script into a function using the parameter of the return? [R$0] Kleptomaniac
Tynezz
#226573923Thursday, October 19, 2017 8:04 PM GMT

local hash=unpack({math.random(1,9),math.random(1,9),math.random(1,9)}) print(hash)
TradedSouls
#226574118Thursday, October 19, 2017 8:11 PM GMT

That returns the repetition of the same integer [R$275] Kleptomaniac
TradedSouls
#226574745Thursday, October 19, 2017 8:30 PM GMT

bump, still looking for a viable solution. [R$275] Kleptomaniac
Scrippa
#226574836Thursday, October 19, 2017 8:33 PM GMT

do you mean every time you start it it returns the same number? if so, just add this on top of your script: math.randomseed(tick())
TradedSouls
#226574911Thursday, October 19, 2017 8:35 PM GMT

I have that, and : local hash = unpack({math.random(1,9),math.random(1,9),math.random(1,9)}) Always returns 5555555555555 [R$275] Kleptomaniac
TradedSouls
#226574946Thursday, October 19, 2017 8:36 PM GMT

I meant 555 [R$275] Kleptomaniac
cntkillme
#226575915Thursday, October 19, 2017 9:06 PM GMT

no it doesnt
TradedSouls
#226575969Thursday, October 19, 2017 9:07 PM GMT

I found the problem. [R$275] Kleptomaniac

    of     1