... they should be more complex. with 12 to 18 chars. and more random.
Here's a short Perl script that generates 10 distinct random numbers between NUM1 = 999,999,999,999 (12 digits) and NUM2=999,999,999,999,999,999 (18 digits). $range in the script is NUM2 - NUM1.
tyler_durden
This User Gave Thanks to durden_tyler For This Post:
Hello
I have multiple accounts that running application that uses unique port number
I want to generate this port from some sid number that stays constant for every user account , is there any place in the system
that generate number that is unique to the account ?
thanks (0 Replies)
Hi...
I have a sequence of jobs and its predecessors..
Input
Job_Name Predecessor
A NULL
B1 A
B2 A
B3 B1
C B3
C B2
So based on these i have to generate the level Number
What i mean is
Let A be level 1
for B1 to happen it should have done A
so B1 level is A+1 = 1+1 = 2 (12 Replies)
Hi All,
I have a requirement where in I have an input as follows:-
input=1-4,6,8-10,12-15
I need to explode this range into an output file as follows:-
1
2
3
4
6
8
9
10
12
13
14
15
My input may vary like 1,5-9,11-13,15-17....... (3 Replies)
As I add new data to database.txt I want to generate a unqiue User Id. This is my current solution.
echo $RANDOM:$lname:$fname >> database.txt
But I seem to have problems when I try and use $RANDOM for formatting like so:
grep "^4539" database.txt | awk -F":" '{print "User... (4 Replies)
hi guys,
I am writing a c program that generates a two dimensional array to make matrix and a vector of random numbers and perform multiplication. I can't figure out whats wrong with my code. It generates a matrix of random numbers but all the numbers in the vector array is same and so is the... (2 Replies)
Hi,
I want to generate 2000 mac address. Please let me know how to do so.
Perl script or there is some tool availlable wherein i can give the count and it will generate that many mac-address
Thanks,
Kriti (4 Replies)
i want to generate a random number through a script, and even if anyone reads the script, they wont be able to figure out what the random number is. only the person who setup the script would know it.
something like this could work: random
the full thread is here:
... (13 Replies)
I need awk script to generate part number sequencing based on data in multiple columns like below
Input File
---------
Col A|Col B|Col C|
1|a|x|
2|b|y|
|c|z|
| |m|
| |n|
And out put should be like
1ax
1ay
1az
1am
1an
1bx
1by (6 Replies)
Hi,
I want 10000+ unique Audio file of approx 2MB each. How can i generate numerous audio files using shell script. Any tool, command or suggestions are welcome.
If i give one audio seed file then can we create numerous unique files with same seed file?
Any help is highly appreciable.... (11 Replies)
Discussion started by: sushil.kumar
11 Replies
LEARN ABOUT OSX
bn_pseudo_rand
BN_rand(3) OpenSSL BN_rand(3)NAME
BN_rand, BN_pseudo_rand - generate pseudo-random number
SYNOPSIS
#include <openssl/bn.h>
int BN_rand(BIGNUM *rnd, int bits, int top, int bottom);
int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom);
int BN_rand_range(BIGNUM *rnd, BIGNUM *range);
int BN_pseudo_rand_range(BIGNUM *rnd, BIGNUM *range);
DESCRIPTION
BN_rand() generates a cryptographically strong pseudo-random number of bits bits in length and stores it in rnd. If top is -1, the most
significant bit of the random number can be zero. If top is 0, it is set to 1, and if top is 1, the two most significant bits of the number
will be set to 1, so that the product of two such random numbers will always have 2*bits length. If bottom is true, the number will be
odd.
BN_pseudo_rand() does the same, but pseudo-random numbers generated by this function are not necessarily unpredictable. They can be used
for non-cryptographic purposes and for certain purposes in cryptographic protocols, but usually not for key generation etc.
BN_rand_range() generates a cryptographically strong pseudo-random number rnd in the range 0 <lt>= rnd < range. BN_pseudo_rand_range()
does the same, but is based on BN_pseudo_rand(), and hence numbers generated by it are not necessarily unpredictable.
The PRNG must be seeded prior to calling BN_rand() or BN_rand_range().
RETURN VALUES
The functions return 1 on success, 0 on error. The error codes can be obtained by ERR_get_error(3).
SEE ALSO bn(3), ERR_get_error(3), rand(3), RAND_add(3), RAND_bytes(3)HISTORY
BN_rand() is available in all versions of SSLeay and OpenSSL. BN_pseudo_rand() was added in OpenSSL 0.9.5. The top == -1 case and the
function BN_rand_range() were added in OpenSSL 0.9.6a. BN_pseudo_rand_range() was added in OpenSSL 0.9.6c.
50 2013-03-05 BN_rand(3)