RE: rock scissors paper 11-05-2013, 04:27 AM
#31
@ArkPhaze: Yes, if it returns integers you can use that one as well and it's better suited for the situation, although both will work.
It might be also good idea for exercise to try to implement own extensions of the random function, where you pass the range within which you want to generate random number and it'll return it for you - make variants for both integers and doubles.
Also quite useful might be to implement function which accept some collection and return random element from it.
It might be also good idea for exercise to try to implement own extensions of the random function, where you pass the range within which you want to generate random number and it'll return it for you - make variants for both integers and doubles.
Also quite useful might be to implement function which accept some collection and return random element from it.
I love creativity and creating, I love science and rational thought, I am an open atheist and avid self-learner.