Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 173 results for
randoms
- Page 1
Re: Fun with randoms
Programming
Software Development
15 Years Ago
by VernonDozier
… was defining x as the number of
randoms
per line, not the total number of
randoms
. A "group" is 12…
Re: Fun with randoms
Programming
Software Development
15 Years Ago
by zeus1216gw
… was defining x as the number of
randoms
per line, not the total number of
randoms
. A "group" is 12…
Keno!
Programming
Software Development
13 Years Ago
by Clinton Portis
…i<160; i++) { swap(
randoms
[rand()%80],
randoms
[rand()%80]); } //move to the … " "; } void keno::computer_draw() { int
randoms
[80]; int snooze = 30; int cp = 0;… i<160; i++) { swap(
randoms
[rand()%80],
randoms
[rand()%80]); } //get a list…
Couple of Histogram Problems
Programming
Software Development
14 Years Ago
by Philosophy
… then does a random number generation where 85% of the
randoms
are within the range and 15% are outside, and counts… to 10, there seems to be a problem with the
randoms
generating any occurances of the last 2-3 slots in… range falls into positive, or even ends a 0 the
randoms
generate for the end of the array just fine and…
Marquee with Json binding
Programming
Web Development
8 Years Ago
by Abhishek_26
…curl_close($ch); $json = json_decode($content, true); $
randoms
= array_rand($json, 10); $count = count($
randoms
); for($i=0;$i<$count;$i++) { echo…100%" rel="nofollow, noindex" href='.$json[$
randoms
[$i]]['link'].'> '.$json[array_rand($json)]['coupon_title'].'</a>…
Re: Couple of Histogram Problems
Programming
Software Development
14 Years Ago
by Philosophy
… put in to start at -50 with 50
randoms
generated, all of the
randoms
that it generated were positive and in the…
Question about game programming...
Programming
Software Development
18 Years Ago
by Harkua
… one characters in a turn-based fight. Do you think
randoms
determining
randoms
would work? (Thats up to the most extensive extent…
Store ArrayList in Hashmap???
Programming
Software Development
15 Years Ago
by torbecire
…Rand3 = 4; int randomInts = randomGenerator.nextInt(4); int
randoms
= randomGenerator.nextInt(5); int randomia = randomGenerator.nextInt(5);… randomInts +=1;// ((
randoms
+ randomia)/3) +1; // System.out.println("…
Put ArrayList in HashMap
Programming
Software Development
15 Years Ago
by torbecire
…Rand3 = 4; int randomInts = randomGenerator.nextInt(4); int
randoms
= randomGenerator.nextInt(5); int randomia = randomGenerator.nextInt(5);… randomInts +=1;// ((
randoms
+ randomia)/3) +1; // System.out.println(&…
Re: Couple of Histogram Problems
Programming
Software Development
14 Years Ago
by Dingbats
… others, for example -20 (and less) till 200 with various
randoms
- all "normal". Sugestion: copy everything from this project…
Re: Couple of Histogram Problems
Programming
Software Development
14 Years Ago
by Philosophy
… others, for example -20 (and less) till 200 with various
randoms
- all "normal". Sugestion: copy everything from this project…
anyone help wth my anagram game!!!
Programming
Software Development
19 Years Ago
by Te'DDy
… many words the user could create. But onething is the
randoms
words wouldnt be the same one at everytime the program…
Looking for some Guidance.
Programming
Software Development
17 Years Ago
by Noyeaux
… to expand it. Project 2 i want to have 'weighted
randoms
' if possible.. making some out comes more likely then others…
Qsort
Programming
Software Development
17 Years Ago
by patsfan4878
… i need to take what i have, print the fifty
randoms
, sort them and then print them once sorted. Any help…
Re: Qsort
Programming
Software Development
17 Years Ago
by patsfan4878
… i need to take what i have, print the fifty
randoms
, sort them and then print them once sorted. Any help…
Help with arrays and rand.
Programming
Software Development
17 Years Ago
by someguy88
… teaching myself here, but i went and checked if the
randoms
where working allright and they were so im stumped? Can…
Problem with page navigation
Programming
Web Development
16 Years Ago
by Suhacini
…>'; echo'</tr>'; } } //$query = "SELECT val FROM
randoms
LIMIT $offset, $rowsPerPage"; //$result = mysql_query($query) or die('Error…
Re: Problem with page navigation
Programming
Web Development
16 Years Ago
by Suhacini
…($query); if(!$result){die(mysql_error());} //$query = "SELECT val FROM
randoms
LIMIT $offset, $rowsPerPage"; //$result = mysql_query($query) or die('Error…
Java Quiz Help plzz
Programming
Software Development
16 Years Ago
by KPS
…(); }//Close restart option }//Close Loop }//Close Introduction }//Close Variables }//Close
Randoms
}//Close While Loop }//Close Main ive tried looking everywhere but…
generating random numbers in array
Programming
Software Development
15 Years Ago
by jprogram
I have tried to fill an array with
randoms
numbers between zero and nine. The code I have used so far is this. int a[40], b[40]; for (int i=0; i<39; i++) { a[i]=(0 rand() % 9); b[i]=(0 rand() % 9); } Why will this not work?
Tictactoe python
Programming
Software Development
14 Years Ago
by coco08
…) board[idx] = "x" print_board(board) used = False def
randoms
(list): import random return random.choice(list) usedcoord += number[/CODE]
Random Number Code
Programming
Software Development
13 Years Ago
by Alex_2011
… code but I don't know how to create the
randoms
to make it work. Your help is really appreciated. [CODE…
hs_err_pid Java Client-Crash log Help?
Programming
Software Development
11 Years Ago
by Tobyjug2222
…, id=11544, stack(0x26ab0000,0x26cb0000)] 0x1c8be800 JavaThread "TRiBot Script
Randoms
Thread" [_thread_blocked, id=6088, stack(0x26310000,0x26510000)] 0x1c8b9800 JavaThread…
Altering statistics of generated random numbers
Programming
Software Development
6 Years Ago
by overwraith
…. This is not homework. This would mean I essentially generate
randoms
, and the final result has a statistical probability. Thanks!
Re: Altering statistics of generated random numbers
Programming
Software Development
6 Years Ago
by JamesCherrill
…" (but the easiest approximation is to add together 12
randoms
(0-1) and subtract 6... an implementation of the Central…
Fun with randoms
Programming
Software Development
15 Years Ago
by zeus1216gw
I know how to make random numbers. and How to make random numbers in a specific range. BUT!!! How can you display 'x' random numbers in a given range and make it so the output display lists the numbers in groups a 'y'. For example: I want to display 25 random numbers between 1-100 in groups of 5 numbers per line. Of course the user could …
Re: Fun with randoms
Programming
Software Development
15 Years Ago
by Nick Evan
You could use 2 nested loops: [code=cplusplus] for (int x = 0; x < user_x; x++) { for (int y = 0; x < user_y; y++) { // do stuff } std::cout << '\n'; // next line } [/code] Or you could use one loop and use the remainder operand [code=cplusplus] for (int i = 0; i < user_x * user_y; i++) { // do stuff…
Re: Fun with randoms
Programming
Software Development
15 Years Ago
by VernonDozier
[QUOTE=zeus1216gw;909785]I know how to make random numbers. and How to make random numbers in a specific range. BUT!!! How can you display 'x' random numbers in a given range and make it so the output display lists the numbers in groups a 'y'. For example: I want to display 25 random numbers between 1-100 in groups of 5 numbers per line. Of …
Re: Fun with randoms
Programming
Software Development
15 Years Ago
by Tom Gunn
[QUOTE]Is there a 'z' involved, as in the total number of groups?[/QUOTE] z can be calculated using x and y, but having an actual z makes it harder to handle an x that isn't perfectly divisible by y.
Re: Fun with randoms
Programming
Software Development
15 Years Ago
by zeus1216gw
sorry I forgot to add the groups need to be on the same line separated by a blank line. would it be sometime similar? I keep getting errors. thanks [QUOTE=VernonDozier;909791]So 'x' is the number of numbers per line, 'y' is the number of lines? Is there a 'z' involved, as in the total number of groups? [code] xxxx xxxx xxxx xxxx …
1
2
3
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC