© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
30 replies
Kru

Random Name generator.

I wanted to learn by doing practice and reading books (hate video tutorial format).

This is what I had in mind and I was able to get most of it done.

1) Capture set of names in string array
2) Get the length of the array and store the value in variable
3) Use the length stored to create random number store that in variable
4) used the random numbered to print random names from array

This is all working using code below, my last requirement was, Load the name from JSON file. For the life of it i can't get it to load as Array. I was able to load it but it's printing value by specific position of character not array position.

Code:

https://paste.mod.gg/wracquwvdibv/0
BlazeBin - wracquwvdibv
A tool for sharing your source code with the world!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Random Generator method
C#CC# / help
2y ago
❔ ✅ Semi-Random-Generator
C#CC# / help
4y ago
✅ Random character generator
C#CC# / help
4y ago