PHP Classes
Icontem

File: usage.txt


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of freak  >  Rand  >  usage.txt  
File: usage.txt
Role: Documentation
Content type: text/plain
Description: Readme first
Class: Rand
Generate random numbers
 

Contents

Class file image Download
USAGE: 
	$var = new Rand();

		$var->frand(#) - returns a Positive number between 0 and #.
			example: $var->frand(5);

		$var->frand(#1, #2) - returns a Positive number between #1 and #2.

			example: $var->frand(15, 4);

		$var->frand(#1, #2, #3) - returns a Positive floating number between 
				#1 and #2 when the floating part's length is maximum #3 number of digits.

			example: $var->frand(15, 0, 3);
			example: $var->frand(15, 4, 3);

		$var->frand(#1, #2, #3, false) - the "false" indicates that the function
				may also return a Negative value.

			example: $var->frand(15, 0, 0, false);
			example: $var->frand(15, 0, 3, false);
			example: $var->frand(15, 9, 0, false);

		$var->frand(#1, #2, #3, false/true, true) - the last "true" indicates
				whether the function should or not leave a trace.

			example: $var->frand(15, 9, 0, false, true);
			example: $var->frand(15, 9, 0, true, true);
			example: $var->frand(15, 0, 3, false, true);

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products