Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Basic4ppc Wishlist > Bug Reports
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Bug Reports Post about errors or bugs encountered.

Rnd

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-22-2010, 07:48 PM
Knows the basics
 
Join Date: Jul 2010
Location: St.Petersburg
Posts: 59
Default Rnd

Can't say it's a bug but I feel like reporting it in this section.
I have noticed it before.....
The last number of Rnd parameter is never generated;

number = Rnd(0,3)
Msgbox(number)

3 is never generated.
Reply With Quote
  #2 (permalink)  
Old 07-22-2010, 08:22 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 1,057
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by Monsterman22 View Post
The last number of Rnd parameter is never generated
This is exactly the expected behavior.

Excerpt form the help file:
Generates a random integer larger or equal to the minimum value and smaller than the maximum value.



specci48
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


All times are GMT. The time now is 04:08 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0