233 Topics

Member Avatar for
Member Avatar for Empireryan

OK, I've got a [90][10] 2d array. I have a set of pointers that point to the values in the array by column. each column holds different info. It's a payroll file so the zero column of my array corresponds to an employee number. What I want to do is …

Member Avatar for NathanOliver
0
102
Member Avatar for cmbicycles

I have a desktop XP machine that in the last 2 weeks started shutting down randomly and rebooting. It does it now continuously even when trying to start in safe mode... it won't even get that far. I can get into the bios, but it doesn't seem to get me …

Member Avatar for Blitz-labs.com
0
164
Member Avatar for leesho

its a random number generator [CODE]#include <iostream.h> #include <stdlib.h> #include <time.h> #include <iomanip.h> using namespace std; int main () { const int MAX_RANGE = 100; int value; int random = rand( ); int num = ((random % 100) + 1); int quit; do { srand (time (NULL)); value = rand() …

Member Avatar for WaltP
0
154
Member Avatar for edgareatis

Ok this will be a easy to make game for pros but for new users it will improve your understanding of c#. Ok start my setting up your GUI(Generall User Interface) by selecting a trackerbar, 2 buttons, a label and a trackerbar. Place the trackerbar at the top of your …

0
122
Member Avatar for mmpjb

Hi all, Currently trying to write a piece of code for a project at university, with very little C Compiler experience I am struggling... Basically- we have 8 LED's, and 8 switches. We want 4 of the 8 LED's to light up at random when the program is run, that …

Member Avatar for jwenting
0
289
Member Avatar for pcchamp

The program is an inventory control that is suppose maintain store merchandise details in random access files for 3 store locations each location saved to its own RAF. It also uses multiple forms for user to add merchandise, edit/view merchandise details and display an inventory report. Everything is working in …

Member Avatar for pcchamp
0
272
Member Avatar for slejeivw

I am trying to store a single random number from 0 to 99 to a variable. This is what I used in my code to do that: [code]time_t t; time(&t); srand((unsigned int)t); int rTSB(rand() % 100);[/code] I am trying to make a single random picture show up when you start …

Member Avatar for WolfPack
0
255
Member Avatar for jeanfrg

Hi I have an assignment to do where I have to make a race between two cars (this assignment is a continuation of a previos 'mini' assignment where I had to do the 'race' with one car). The commands that I implemented for the cars is foward (increases distance travelled), …

Member Avatar for jeanfrg
1
2K
Member Avatar for Chelp261

I have a program which is as follows: We'll extend the Search and Rescue Simulator. You will implement a class to represent the location of a person, and add searchers to the simulation. A Person class that will be used to represent both the missing person and the searchers, details …

0
105
Member Avatar for NOLK

Hello all, I'm fairly inexperienced at C# and I am currently working on a project that requires me to generate two random numbers, then apply a random mathematical operator (+,-,*,/). I'm currently struggling on how I would do this. So far I have worked out how to generate two random …

Member Avatar for NOLK
0
1K
Member Avatar for aquaticdeity

I tried to create 10 random circles with random colors using windows forms. The problem am not able to restrict my program to draw only 10 circles.It goes on and on. [code] Timer t = new Timer(); t.Interval = 1; t.Start(); t.Tick += new EventHandler(DrawCircle); [/code] is there any way …

Member Avatar for ddanbe
0
141
Member Avatar for musikluver4

[code] //Date: 3/17/2010 import java.util.Random; public class Bingo { public static void main(String[] args) { Random bingo = new Random(); for (int i = 1; i <= 50; i++) { System.out.println("Card #" + i + "\n********"); System.out.println(); for (int j = 1; j <= 24; j++ ) { int bingoNum; …

Member Avatar for BestJewSinceJC
0
5K
Member Avatar for kstmchick

I have been attempting to write a program that takes an input from a button class and a graphics class that creates a gui for a game called three button monte. So far I've been able to get it to sort of work. The point is to have the "game" …

Member Avatar for vegaseat
0
402
Member Avatar for aceofspades451

I'm trying to design an algorithm that will output data from an array in random order but not repeat until every peace of the data has been output. The size of the array is small (about 10). it picks a random prime number smaller than the size of the array(lets …

Member Avatar for aceofspades451
0
145
Member Avatar for SimonLarsen

I'm working on my first game in C++ and SDL. The game compiles and runs perfectly on both my boxes (Arch Linux and Windows XP). When two of my friends were to test the game, one of them (running Windows Vista) said his machine BSoD'd every time he ran the …

Member Avatar for SimonLarsen
0
231
Member Avatar for The Pobo

Hey, I'm a student with rudimentry knoledge of VB6 and I've a college project where I have to develop a blackjack game. Unfortuanately I've a problem with the method I call the cards I was wondering if any of you would be able to shed some light on the problem. …

Member Avatar for The Pobo
0
212
Member Avatar for avirag

This is a snippet that takes a min value, max value and how many random numbers from the user then, after it checks to make sure it's not already in the list, adds the new random number to a List.. I hope it helps you..... :)

Member Avatar for apegram
0
211
Member Avatar for rrvs331

So I made this coin flipping program. It generates a random number between 1 and 2, and checks to see how many "flips" it would take for it to get 15 flips in a row. However, every time I run it, I get the same number, 13505, every single time! …

Member Avatar for rrvs331
0
227
Member Avatar for sanjaypandit

hi friends, again a problem I have a mysql table name tbl_admin fields are below id(int), image1(text), image2 (text) , image3 (text) now i want to show these pics, i use randomly function to display them [code=php] $query=select * from tbl_admin where id=5; $result=mysql_query($query); $row=mysql_fetch_array($result) [/code] now for show i …

Member Avatar for network18
0
548
Member Avatar for gcardonav

Hi: I posted yesterday about setting my loop to get random number between the values I desire. Now I got a bit of misunderstanding with my arrays. In the program now I am trying to calculate the average sum of the amount of numbers I get each series. My problem …

Member Avatar for Ancient Dragon
0
182
Member Avatar for soffie

Need to make a random size (x = rows, y = columns) matrix which is filled with random numbers (only 0 or 1). So, if I don't know the size of the matrix, I use dynamic array. So far I have made this far, but obviously it isn't quite correct... …

Member Avatar for soffie
0
2K
Member Avatar for nomemory

Hello, I am a python newbie and I am trying to accommodate to the basics. What's the python equivalent for the following Java snippet ? [B]Java:[/B] [CODE]public class Main { public static void main(String args[]){ int a,b,c; a= (int) (Math.random()*100); c=0; while((b=(int)(Math.random()*100))!=a){ c+=1; } System.out.println(c); } }[/CODE] I was trying …

Member Avatar for woooee
1
214
Member Avatar for AutoPython

Okay, I'm done with making a lot of threads with nooby quesions. Those were just some things in the back of my mind. But that's not the point. Here's a program that generates a random 8 character string. It consists of letters A-Z, a-z, and 1-9. There's 767,544,201,216 possible combinations. …

Member Avatar for AutoPython
0
230

The End.