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'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.

# A pollster uses a computer to generate 500 random numbers then interviews the voters corresponding to those numbers?

Cluster Sampling

# 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.

# What is the algorithm for swapping two numbers?

Using a temporary variable temp = a a = b b = temp Without a temporary variable a = a+b b=a-b a = a-b

# 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]); } }

# Algorithm for reversing digits of a number?

for (revn=0; n!=0; n/=10) revn = 10*revn + n%10;

# How do you recharge dollar general phone card?

it will ask you after you put your pin in

# What is the algorithm to find the factorial of a number?

Factorial of n: fac = 1 while n > 1 fac = fac * n n = n - 1

Answered

In Technology

# The algorithm cheick if the number is a palindrome or not?

int rem,sum=0,number; sf("%d", &number); while(number>0) { rem=number%10; number=number/10; sum=sum+rem; } if(sum==number) pf("palindrom"); else pf("not …palindrome");

Answered

# What is the Algorithm for reverse a given number?

Assuming you want to reverse the digits of the number: numToReverse …

Answered

# How do you generate random questions in PHP?

Depends where is the data. If you use a DB server, you can simply use the DB server's function (such as RAND()). A simple MySQL query would be: SELECT id, question… FROM questions ORDER BY RAND() LIMIT 1,0; You can also generate a random number using rand() and use: SELECT id, question FROM questions WHERE id = '' LIMIT 1,0; But you'll have to ensure that that the id number exists (you can use a loop until you find one or reach max tries). Hope that helps.

Answered

In Technology

# What are some virgin mobile coupon codes?

If you enter yJHeopwD as a kickback code when you activate your phone online (not when you order the phone), you will receive 60 free minutes when you complete your first top …up, or charge of at least $20 within 45 days of activation. This one works. Enjoy. This code is good forever and is guaranteed to work. Â You can also use kickback code Â DYVOYoUW It is new as of December, 6th, 2010. If you activate over the phone, they may ask you for my name, it is Christian. When you use this, we both will get a free 60 minutes of airtime. Thank you.! Â

Updated Answer

In Technology

# What is the algorithm for determining if a number is a palindrome?

LET number be any positive integer. SET temp to number. SET reverse to zero. WHILE temp is not zero... { SET digit to temp % 10 (mask LSD using modulo operator) SET temp to in…teger (temp / 10) (remove LSD) SET reverse to (reverse * 10) plus digit } END WHILE IF reverse equals number { RETURN true (number is palindrome) } ELSE { RETURN false (number is not palindrome) }