menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripters
making random string
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
making random string
KEVEKEV77
Join Date: 2009-03-12
Post Count: 6961
#223908037
Saturday, August 19, 2017 5:47 AM GMT
yeah when making once, should I check all the one's I've made to make sure theres no duplicates.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Kodran
Join Date: 2013-08-15
Post Count: 5330
#223908139
Saturday, August 19, 2017 5:50 AM GMT
I don't think I really understand but you could do like local strings = {} repeat (make new string) until not strings[(string)] strings[(string)] = true
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
KEVEKEV77
Join Date: 2009-03-12
Post Count: 6961
#223908250
Saturday, August 19, 2017 5:54 AM GMT
yeah exactly, but im wondering if like should I. More lag, plus what are the chances I get 2 alike,
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Ajastra
Join Date: 2017-08-01
Post Count: 1461
#223908708
Saturday, August 19, 2017 6:10 AM GMT
No, you don't need to do this because strings in Lua are internalized, which means that Lua only ever stores one copy of a string.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
KEVEKEV77
Join Date: 2009-03-12
Post Count: 6961
#223908812
Saturday, August 19, 2017 6:13 AM GMT
mk thats not what I mean. Each string is assigned to a part, and each one needs to be unique.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Ajastra
Join Date: 2017-08-01
Post Count: 1461
#223908867
Saturday, August 19, 2017 6:15 AM GMT
if aTable[aString] then aTable[aString]:Destroy() aTable[aString] = newPart end
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
KEVEKEV77
Join Date: 2009-03-12
Post Count: 6961
#223908896
Saturday, August 19, 2017 6:16 AM GMT
nvm, but thank u
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right