Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Generate random numbers on ipxe shell??
2014-01-10, 23:34
Post: #2
RE: Generate random numbers on ipxe shell??
(2014-01-09 16:26)oblivionv Wrote:  Is there a way to generate random numbers on the ipxe shell, like how we would using a bash/korn shell? Does it require re-compiling the source?
Something like the following is what am looking for:

echo "192.168.0.$((RANDOM%253+001))"

No, there's no support for doing that. Also, I would very strongly suggest that you use DHCP instead of randomly assigning IP addresses!

Michael
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Generate random numbers on ipxe shell?? - mcb30 - 2014-01-10 23:34



User(s) browsing this thread: 1 Guest(s)