❔ C# Console Application -
its only writing the same random string, how can i make it do different ones?
6 Replies
you generate one random string, then you print it 1000 times.
you don't actually generate a new one each time
if you want to do that, stick your code in a method, or inline the code in your loop.
any examples of that?
this method will generate a new string each time its called
thanks
How would i use this into my code?
ah, your code is a top level statements program
replace your entire code with this
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.