GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- HPE BladeSystem
- >
- Legacy
- >
- Secure OS Software for Linux
- >
- Re: random function
Secure OS Software for Linux
1857333
Members
2438
Online
110372
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
- Integrity Servers
- Server Clustering
- HPE NonStop Compute
- HPE Apollo Systems
- High Performance Computing
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp Software
Knowledge Base
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2008 12:47 PM
02-21-2008 12:47 PM
random function
hi all,
how to use RANDOM function in bash?
for example i have couple words:
vegasharrahs, venture capital, viagra, v1agra, vi@gra, vi*agra,
viagr@, vicodin, video professor, violence, vioxx, virginity*, virus alert,
virus detected
and i want to use RANDOm function to create as many possible words there can be plus using numbers 0-9.
I want to create database for keyword filtering in exchange.
thanks
how to use RANDOM function in bash?
for example i have couple words:
vegasharrahs, venture capital, viagra, v1agra, vi@gra, vi*agra,
viagr@, vicodin, video professor, violence, vioxx, virginity*, virus alert,
virus detected
and i want to use RANDOm function to create as many possible words there can be plus using numbers 0-9.
I want to create database for keyword filtering in exchange.
thanks
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2008 02:02 PM
02-21-2008 02:02 PM
Re: random function
Err, I'm not sure what you're wanting to do with it, but 'RANDOM' in Bash isn't a function, it's an environment variable.
So long as it doesn't get unset, it will be set to a value between 0 and 32767.
The simple test is: echo $RANDOM
Read the 'man bash' page for further details, such as seeding.
So long as it doesn't get unset, it will be set to a value between 0 and 32767.
The simple test is: echo $RANDOM
Read the 'man bash' page for further details, such as seeding.
One long-haired git at your service...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2008 02:33 AM
02-22-2008 02:33 AM
Re: random function
There is no built-in shell function to create entropy data, however you can cat /dev/random and /dev/urandom and then write your own routine.
if you check out Perl there are some functions to do this for you.
if you check out Perl there are some functions to do this for you.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP