![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to set constrain on random numbers in c | ahjiefreak | High Level Programming | 6 | 01-11-2008 04:46 AM |
| how can i isolate the random sequence of numbers using awk? | rcon1 | UNIX for Dummies Questions & Answers | 2 | 01-09-2008 09:06 AM |
| generating random numbers with hamming distance 4 | hack_tom | Shell Programming and Scripting | 2 | 04-29-2007 02:27 AM |
| Random numbers without repetition | asal_email | UNIX for Dummies Questions & Answers | 8 | 07-14-2005 05:02 AM |
| Sed - Replacing numbers w/asteriks in random location in a file | giannicello | UNIX for Dummies Questions & Answers | 9 | 10-04-2001 01:03 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
genrating pseudo random numbers
I want to generate the file in following format
-------------------------------------- mov t1, %r1 mov t2, %g1 mov t3, %o1 . . . . m times add %r1, %g1, %o1 add %r2, %g2, %o2 . . . n times ------------------------------------------- here t1, t2, t3. .. .. etc. random numbers generated between 0 and 32 bit largest number. and %r1 in mov can be %r1-%r32, %g1-%g7, %o0-%o7, %i0-%i7, %l0-%l7 which can also be generated randomely but all should be different in every line . Same case is for all lines begining with add. will it be possible with perl script?? |
|
||||
|
ok if this is not possible atleast you can help me with perl script to generate following file
-------------------------------- mov t1 mov t2 mov t3 ... .. .. . mov tn where t1, t2, t3, .... tn are pseudo random numbers whose value ranges from 0 to largest 32 bit number. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|