Re: Need help with a bash script
First...Holger, thanks for the input. From what I've read and experienced, a=$(( RANDOM % 100 + 1 )) will return a number between 0 and 100, I need to be sure that 0 doesn't come up for first number. As for the second number, I've tried my way around this idea, y=$(RANDOM% <$x+1), etc. I will give this a shot and see what happens. Dragonfly, I started using zenity because in was installed with lubuntu 20.04, but I will definatly check this out. If I can make a script that can run with GUI or from command line without rewriting my script, I would save me some time, plus it is an opportunity to expand my knowledge base. I've only been using linux since Feb. of this year, so still learning and willing to explore new avenues to get to my destination. Thanks so much for the tip.I'll reply( and mark solved if successful) after I try the new number method. You guys are great, I really appreciate the fact that the linux community is so very helpful, and patient, to beginners such as myself. Keep up the good work.
I'm a firm believer that the only stupid question is the one you don't ask.
Lenovo ideapad320-15iap, 1.1G Intel processor with onboard graphics, x64, 1TB SSD, 8GB ram
lubuntu 22.04.1, fully updated
Bookmarks