When this method is first called, it creates a single new pseudorandom-number generator, exactly as if by the expression. Returned values are chosen pseudorandomly with (approximately) uniform distribution from that range. La funciĆ³n Math. Rando () //a floating-point number between 0 and 1 (could be exactly 0, but never exactly 1) rando ( 5 ) //an integer between 0 and 5 (could be 0 or 5) rando ( 5, 10 ) //a random integer between 5 and 10 (could be 5 or 10) rando ( 5, " float " ) //a floating-point number between 0 and 5 (could be exactly 0, but never exactly 5) rando ( 5, 10, " float " ) //a floating-point number between 5 and 10 (could be exactly 5, but never exactly 10) rando ( true, false ) //either true or false rando () // object representing a jQuery element from the provided jQuery element set OR false if the provided jQuery element set does not contain any elements rando ( " Gee willikers! " ) //a character from the provided string OR false if the string is empty. The () returns a double value with a positive sign, greater than or equal to 0.0 and less than 1.0.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |