hi.
can you please tell me how to count digit which has genatreted by random number program?
i.e=
each time occurance of every digit means1,2,3,4........in a genareted random number?
if you want to saw my effrot in this stuff,i can saw you it.

thanks in advance to any one who help me.
bye.:)

Recommended Answers

All 2 Replies

Member Avatar for iamthwee

Yes post your efforts.

You could use the division and the modulo operators in sequence to generate indivual digits which could be used to increment counters in an an array of ints and then print out the array values with the associated indexes when done. But that's just a guess as to what algorhythm you might have used. Posting code and/or specific questions is the only way to get meaningful responses.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.