A lot of times I need to generate random patterns for the projects I'm developing, like when I'm generating data for a testing engine, etc. I have written a generic function which takes care of generating Random Patterns from 1 to specified numbers and returns the Pattern in an Integer Array.
Hope this will be of use for you.
Thanks & Regards
Shobhit
0 comments
Hide comments