C
C#3y ago
TOLOXI

how do i store multiple values in one string?

im trying to build a very simple random name picker but i forgot how to store muliple values in one string
5 Replies
Angius
Angius3y ago
You don't You use an array of strings Also, the constructor of Random takes an integer as a seed, probably not what you wanted to do here
TOLOXI
TOLOXIOP3y ago
ohhh can i use the random rand code on an array?
MODiX
MODiX3y ago
thinker227#5176
REPL Result: Success
"Saif" + "Tulin"
"Saif" + "Tulin"
Result: string
SaifTulin
SaifTulin
Compile: 268.741ms | Execution: 66.081ms | React with ❌ to remove this embed.
Thinker
Thinker3y ago
this is what + on strings actually does btw
TOLOXI
TOLOXIOP3y ago
ohhh so its better if i just stick to an array

Did you find this page helpful?