Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 688

How to random number and total should be specified value?

$
0
0
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.

Viewing all articles
Browse latest Browse all 688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>