What would you like to do?

# What is the algorithm of generating unique random numbers like in mobile recharge coupons?

# How do you make a random number generator?

Using c++ #include #include #include using namespace std; int main() { srand(time(0)) cout …

# What is Hardware random number generator?

In computing, a hardware random number generator is an apparatus that generates random numbers from a physical process.

# What's one of the random number generators of a pair of dice?

If you just want to roll a die and not learn how to do it, you can type "roll a die" into Google, and it will have a six-sided die for you to roll right on that page. Othe…r sizes of dice rollers will be available in the search results as well. If you want to learn how to do it in Excel though, that is below: If you want to simulate the outcome of throwing a pair of dice (two die), it is easy and I will explain how to do this with Excel. A single die has a discrete uniform distribution, with values from 1 to 6. Some programs have a built in function for computing random values. Excel does not, but it does have a built in continuous random number generator rand() from 0 to 1. Rand() will generate numbers above 0 and below 1, so if I multiply the numbers by 6, I will have numbers above 0 and below 6. I will take this number and use the int function to round down the number to the next lowest whole number, so now I have discrete numbers from 0 to 5. I can add one to these numbers and now I have random numbers 1 to 6. So, in Excel you can use int(rand()*6)+1 to obtain the random numbers. I can put this equation in a second cell, and add them together. You can copy this equation many times and obtain many simulated throws of dice. In Excel, you can hit the F9 key and execute this program, obtaining different random numbers.

# Design a algorithm to generate all prime numbers within the limits l1 and l2?

Algorithm: to generate all prime numbers between the limits l1 and l2. Input: l1 and l2 Output: Prime numbers between l1 and l2 Method: for (n=l1 to l2 in steps of 1 do) prime…=true for (i=2 to n/2 in steps of 1 do) if (n % i =0) prime = false break end_if end_for if (prime = true) Display 'Prime number is =', n end_for

# How are the 16 digit voucher numbers for mobile phone top up vouchers generated to keep them unique and can anyone create a useable 16 digit number?

3662361496673488

# What is ec recharge for mobile phones?

It means Electronic Coupon Recharge.

# How do you use the Random Number Generator on a TI-84 Calculator?

There are many random functions on a TI-84 calculator. Find them by pressing MATH, and choosing PRB at the top. Use rand to generate a random number between 0 and 1. Example…; to generate a random number between 0 and 1, type: rand Use randInt( to generate a random integer between 2 integers (inclusive)) Example; to generate a random integer between 1 and 10 (including 1 and 10), type: randInt(1,10) Use randNorm( to generate a random number that is close to a certain number. randNorm(x,y) will generate a number that is 95% certain to be within 2*y of x. Example; to generate a random number that is 95% certain to be with 2*(.01) of 7, type: randNorm(7,.01) Use randBin( to simulate a certain number of trials based on their success rate. randBin(x,y) will generate the number of trials of success rate y that succeeded if x trials were run. y must be a percent written as a decimal, so it must be between 0 and 1. Example; to simulate how many trials will succeed if 50 trials are run with a success rate of 75%, type randBin(50,.75) An additional number can be added to tell the calculator to generate more than 1 number and put them in a list. These will run the command 5 times and make a list: rand(5) randInt(2,9,5) randNorm(4,.1,5) randBin(30,.25,5)

# Write A program to implement randomized quick sort algorithm?

include #include #define size 50 void swap(int *x,int *y) { int temp; temp = *x; *x = *y; *y = temp; } int partition(int i,int j ) { return((i+j) /2); } void quicksort(…int list[],int m,int n) { int key,i,j,k; if( m < n) { k = partition(m,n); swap(&list[m],&list[k]); key = list[m]; i = m+1; j = n; while(i

# Write a c program to generate 100 random numbers?

include<stdio.h> #include<stdlib.h> int main(void) { int i; int j[100]; for(i=0;i<100;i++) { j[i]=rand()%100; printf("%d",j[i]); } }

# Design an algorithm to generate all prime numbers between 10 and 20?

loop x from 10 to 20 by 1 loop y from 2 to x-1 by 1 test: if x divisible by y then continue to next loop x iteration end loop y print x end loop x

# What is Vector generation algorithm?

It is a basic algorithm for generating lines on computer screen. line is generated between given 2 endpoints

Answered

In Technology

# How do you generate true random numbers?

True random numbers need a number frame to give it space. Try perl. type in $randomnumber1=int(rand(200))+1; you can change the 200 to anything you like and it… will generate a random number between whatever your number is and one.

Answered

In Technology

# How do you generate random numbers in PHP?

Use the function "rand()" or "mt_rand()". Both functions will generate a random number (as a return value, so be sure to make it point to a variable - see examples). Howe…ver, "rand()" is slower and uses a default PHP randomizing system. mt_rand() is four times as fast, and uses the Mersenne Twister randomizing format - which is much more random. Both functions have two optional parameters - a minimum integer and a maximum integer, respectively. By filling in these parameters, you will get a random number between the values you give (so, giving one and five will give you a random number that is no less than one, and no greater than five). These, again, are optional - and if left blank, the tiniest integer possible is no less than 0, and the largest integer possible is generated by the PHP function "getrandmax()" / "mt_getrandmax()" automatically. Examples, of which all are acceptable: ---- /* Examples using no parameters */ $randomNumber = rand(); $randomNumber = mt_rand(); /* Examples using parameters */ $randomNumber = rand(1, 5); $randomNumber = mt_rand(6, 10); ---- If your PHP build is version 4.2 or under, you will need to seed the random number generator with a value to base off of. "srand()" and "mt_srand()" (to be used with rand() and mt_rand() functions, respectively) can be used in this case. They both only have one optional parameter, which is any seed value - any number. If omitted, a random seed will be generated. More acceptable examples: ---- // Example using no parameters srand(); $randomNumber = rand(); // Example using the seed parameter srand(12345); $randomNumber = rand(); // Example using the "mt" random format functions (without parameters) mt_Rand(); $randomNumber = mt_rand(); // Example using the "mt" random format (with parameters) mt_rand(12345); $randomNumber = mt_rand(); ----

Answered

In Technology

# Are random number generators truly random?

yes, because the number generated is from the computer's CPU database and is selected randomly therefore it must be a random number It depends on how the numbers are genera…ted. If they are based on things in the environment, like noise levels, then yes. If they are solely generated by computer functions, then no, they are pseudo-random numbers, which will be random enough for most purposes.

Answered

In Statistics

# How do you use statistics to justify the use of simple random number generating?

u cant

Answered

# What is a random number and how are generated?

Random numbers that are generated by a computer are pseudo-random (not really random), but they will pass enough statistical tests for randomness to be useful in simulation ra…ndom processes. Java has random number generators in the standard libraries. See the related link if you need more information.