The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Few questions
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
Few questions
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
05-28-2007
matrixmadhan
Technorati Master
Join Date: Mar 2005
Location: k-tier distributed caching
Posts: 2,736
Take mod of the value which you desire.
for values from 1..x
and if you want reduce the set to 1..y
take mod value for x and y.
Taking mod value with y for value x,
will bring down the set 1..x to 1..y
matrixmadhan
View Public Profile
Find all posts by matrixmadhan