+ 1

Generating signs from this (@,#,$,&,X,!)

i know how to generate random numbers, but i have a problem with this one. i did it with an switch, by converting number to the sign. but i'm looking for something else.

1st Dec 2017, 10:24 AM
jam ci
4 ответов
+ 3
U can try to work with Unicode mby
1st Dec 2017, 10:29 AM
stKhaDgar
stKhaDgar - avatar
+ 2
https://code.sololearn.com/cCXvvBBXa9W9/?ref=app i don't know if it's good but i have sth like this.
1st Dec 2017, 11:04 AM
jam ci
0
If switch really isn't enough for you, use a map.
1st Dec 2017, 1:19 PM
Timon Paßlick