+ 2

Friend's can we generate random alphabets using rand() function

20th Jan 2018, 5:59 AM
Muhammad Zubair Irshad
Muhammad Zubair  Irshad - avatar
6 ответов
+ 10
I wouldn't say that selecting from an array of characters is simpler though, but it works too. https://code.sololearn.com/cnrk13r4aOI7/?ref=app https://code.sololearn.com/cZfx07FLcq77/?ref=app
20th Jan 2018, 6:12 AM
Hatsy Rei
Hatsy Rei - avatar
+ 9
Generate integer values between a designated range of ASCII values, and then cast the values to their character counterparts.
20th Jan 2018, 6:01 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
can u please post code about it
20th Jan 2018, 6:03 AM
Muhammad Zubair Irshad
Muhammad Zubair  Irshad - avatar
+ 2
or a simpler method is by having an array of alphabets then select elements randomly with a Rand() that outputs values between 0 to 25 or between 0 to array.length
20th Jan 2018, 6:05 AM
᠌᠌Code X
᠌᠌Code X - avatar
+ 2
it will be more helpfull if u develop a code in c++ @Brains
20th Jan 2018, 6:12 AM
Muhammad Zubair Irshad
Muhammad Zubair  Irshad - avatar
0
Thank you for your kind responce
20th Jan 2018, 6:18 AM
Muhammad Zubair Irshad
Muhammad Zubair  Irshad - avatar