answersLogoWhite

0


Best Answer

(Int(0 * Rnd) +1) * UNSURE AS I DONT HAVE VB ON MY PC ATM *

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: The function in Visual Basic that returns a random number between 0 and 1 is?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Difference between sizeof and strlen?

The sizeof operator returns the total size, in bytes, of the given operand, whereas the strlen function returns the number of characters in the argument up to but not including the first null-terminator.Consider a character buffer allocated 50 bytes to which you assign the string "Hello world". The sizeof operator will return 50, but the strlen function returns 11.


How you can generate an random unique number in visual basic studio?

You can use this function: Function Random(ByVal Lowerbound As Long, ByVal Upperbound As Long) Randomize() Random = Int(Rnd * Upperbound) + Lowerbound End Function And use it by using: whatever.Text = Random(1, 1000) This example gives a number between 1 and 1000.


What is rand function in c plus plus?

The rand() function returns an integer (int) value that represents a pseudo-random number between 0 and RAND_MAX, RAND_MAX being a constant declared in the run-time library. Each time rand() is invoked, a different value is returned.


How boolean function works?

A boolean function is simply a function that returns a boolean value - a value that can either be "true" or "false". The return value may be used to see whether a function was successful, for example:if openfile("somefile.txt")// The file was opened succesfully, we can now proceedA boolean function will often reply to a question which can be replied with "yes" or "no". For example, you can have a function that asks the user to confirm an action:if user_confirms("Are you sure you want to delete this file?")// Delete the file hereOr:if isPrime(myNumber)// Output: "Your number is a prime number"else// Output: "Your number is not a prime number"A boolean function is simply a function that returns a boolean value - a value that can either be "true" or "false". The return value may be used to see whether a function was successful, for example:if openfile("somefile.txt")// The file was opened succesfully, we can now proceedA boolean function will often reply to a question which can be replied with "yes" or "no". For example, you can have a function that asks the user to confirm an action:if user_confirms("Are you sure you want to delete this file?")// Delete the file hereOr:if isPrime(myNumber)// Output: "Your number is a prime number"else// Output: "Your number is not a prime number"A boolean function is simply a function that returns a boolean value - a value that can either be "true" or "false". The return value may be used to see whether a function was successful, for example:if openfile("somefile.txt")// The file was opened succesfully, we can now proceedA boolean function will often reply to a question which can be replied with "yes" or "no". For example, you can have a function that asks the user to confirm an action:if user_confirms("Are you sure you want to delete this file?")// Delete the file hereOr:if isPrime(myNumber)// Output: "Your number is a prime number"else// Output: "Your number is not a prime number"A boolean function is simply a function that returns a boolean value - a value that can either be "true" or "false". The return value may be used to see whether a function was successful, for example:if openfile("somefile.txt")// The file was opened succesfully, we can now proceedA boolean function will often reply to a question which can be replied with "yes" or "no". For example, you can have a function that asks the user to confirm an action:if user_confirms("Are you sure you want to delete this file?")// Delete the file hereOr:if isPrime(myNumber)// Output: "Your number is a prime number"else// Output: "Your number is not a prime number"


What is return in programming?

The return statement is used in functions to return control to the caller. If the function is declared non-void, the return statement also allows the programmer to return a value to the caller.

Related questions

What is the difference between the PMT and PPMT functions in Excel?

The PPMT function returns the amt. of interest in a specified instalment number whereas the PMT function returns the amt. of interest in every EMI payment.


A function prime that returns if its argument is a prime no or returns zero?

prime number


What function returns the number of occurrences of a specified character in the input string?

The charAt function returns the number of occurrences of a specified character in the input string.


What is the name of the function that returns number of cells with numerical values?

The COUNT function.


What is an absolute function?

The absolute value function returns the absolute value of a number.


What does the inc function do in clojure?

Returns a number one greater.


What is the function that returns the number corresponding to the beginning of the date December 31 1899?

Now function


How does the trig function ACOS work in Excel?

In Excel, the ACos function returns the arccosine (in radians) of a number.The syntax for the ACos function is:ACos( number )number is a number between -1 and 1. It is the cosine of the angle that you wish to find.Applies To:Excel 2007, Excel 2003, Excel XP, Excel 2000


Does the TI-89 have a built-in function that returns the number of elements in a list or matrix?

Yes, the in-built dim() function


Difference between sizeof and strlen?

The sizeof operator returns the total size, in bytes, of the given operand, whereas the strlen function returns the number of characters in the argument up to but not including the first null-terminator.Consider a character buffer allocated 50 bytes to which you assign the string "Hello world". The sizeof operator will return 50, but the strlen function returns 11.


What is the purpose of lookup match function in abinitio?

Hi This is Azeem Look up_count function returns the number of matching records in a lookup file


When assigned to a cell what function returns a number that corresponds to the system date and time?

The function to show current date and time in Excel is =NOW().