![]() |
|
[Java] How do I generate a number that doesn't have a certain number? - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Java] How do I generate a number that doesn't have a certain number? (/showthread.php?tid=5436342) |
How do I generate a number that doesn't have a certain number? - Tahh - Oct 17, 2016 I am trying to use random to generate a three digit number that doesn't have a 8 or 9 in it. EDIT: nvm I went full retard for a second; This is too easy. |