[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –
C# Beginners Tutorial – 55 – Generating Random String
by
Tags:
Comments
9 responses to “C# Beginners Tutorial – 55 – Generating Random String”
-
I want to make a random string that prints out the words "rock", "paper", "scissors" not random letters. Idk if you can help me out?
-
Thanks, this helped a lot 😛
I think this tutorial is really helpful for noobs like me. -
is this c++?
-
My code won't let me use MessageBox it always shows an error saying that it isn't in the context. Does anyone know why?
-
Random.Next(0,25) will not ever return 25, because the upper bound is exclusive. So you will never get to the 'z' character. You should always add 1 to the maxValue, if you want it to be included.
-
Computers count from 0.
So if u want to find something in 26-long array, u search from index 0 to 25 (which will give us 26 options). -
How would I be able to display them to labels?
-
Great video,,Thank you 🙂
-
@wetwetu yes you can use split method to put al strings in string array and than you randomly go through then
stringArray[Random.Next()] and if you want to be shore to not make some string twice just use if statement if it's been already used
Leave a Reply