I assume that you want to get a random character from an input-string, right?
First things first:
You seem fairly new to C# or programming in general. Maybe you want some tutorials. Or you could just grab a good programming book.
Nonetheless, Lets go through this:
static char Zufallszeichen(string s) /* You never use the argument, why do you have one* */
{
Random rnd = new Random();
string x = "jvn"; // You are creating this string and returning it unchanged at the end
string result = "";
Convert.ToChar(x); // This ->returns<- the input as char... so basicly you have to catch the value. But why would you that in the first place
for (int i = 0; i < 1; i++) // You're looping for 1 iteration (i.e. running the code inside once)
{
result += x.Substring(rnd.Next(0, x.Length), 1); // You're appending a random character to the result _string_ but never returning it.
}
return x; // You will only return jvn, as x has remained unchanged.
}
Here a very simple approch:
public static char GetRandomCharacterFromString(string input)
{
// Do some basic null-checking
if(input == null)
{
return char.MinValue; // Or throw an exception or, or, or...
}
var random = new Random();
var inputAsCharArray = input.ToCharArray();
var index = random.Next(0, input.Length);
return inputAsCharArray[index];
}
EDIT: I know that there are a more easier or simpler answers, but I hope that this approach is more "understandable".