dimanche 20 décembre 2015

Generic Random Function in Swift

I have researched and looked into many different random function, but the downside to them is that they only work for one data type. I know I could just convert it to different data types, but I would like to know if there is a way to have it done using generics. Does someone know a way to make a generic random function using swift. Thanks.




Aucun commentaire:

Enregistrer un commentaire