+ 2
What is a "random chance line"?
22nd Apr 2022, 6:10 PM
Lisa
Lisa - avatar
+ 2
Have a collection(array, list etc) and pull a random element from it like this. int[] nums = { 1, 2, 3, 4, 5 }; Random r = new Random(); int randomElement = nums[r.Next(0, nums.Length)];
25th Apr 2022, 4:46 PM
qrt
qrt - avatar
+ 1
Attempts?
22nd Apr 2022, 6:39 PM
Nanda Balakrishnan
+ 1
So for example you have an array and want to choose one element at random?
23rd Apr 2022, 1:30 PM
Lisa
Lisa - avatar