Hi im trying to make it so I can generate a random number 1-35 so for example if the number is 25 it will write out in a string 25 equal signs. How can I do that?
Random r = new Random(); r.next(1, 35); R's result = 25 string result = 25 equal signs Class string has a constructor that can do the work for you.
Random r = new Random(); int number = r.next(1, 35); string result = new string('=', number);
new string('=', r.Next(1, 35))but really I didn't understand what you mean.