Dear all expert programmers,
Please tell me how to random number and total should be specified value.
If I want to random 3 number and total mod 10 should be 3
Example result : 012,003, 049, 580
If I want to random 9 number and total mod 10 should be 8
Example result : 0814625633 --> 0+8+1+4+6+2+5+6+3+3=38 and 38 mod 10 = 8
Thank you for all posts.
Please tell me how to random number and total should be specified value.
If I want to random 3 number and total mod 10 should be 3
Example result : 012,003, 049, 580
If I want to random 9 number and total mod 10 should be 8
Example result : 0814625633 --> 0+8+1+4+6+2+5+6+3+3=38 and 38 mod 10 = 8
Thank you for all posts.