233 Topics

Member Avatar for
Member Avatar for MoShapes

Hi, So, I have a client that wants a new background image every time page is reloaded. I thought I have to script and thought I had it working but when I applied it to all my pages from a template I made in dreamweaver it doesn't work. It only …

Member Avatar for SEOCoder
0
164
Member Avatar for gth759k

Hi, I need help with a simple problem. I'm still new to c++ but this should be fairly straightforward. I just need to generate a random number, but with only a very small range like ... 0.00001 to 0.001. Any help would be appreciated. Thanks.

Member Avatar for Zjarek
0
79
Member Avatar for pi_lord12

Hey, I'm new to Python and wondering about the following bit of code. It tells me that the module random has no attribute randint. I've looked at the documentation and such and I think I'm doing it correctly, but obviously something's wrong. Any ideas? Thanks! [code] import random int1=random.randint(1, 6) …

Member Avatar for pi_lord12
0
2K
Member Avatar for yellowkaiq

I can't get this to generate random shapes, etc. Basically what I need to do is randomly generate similar lists consisting of: combinations of 'square', 'triangle', 'circle' and 'left'. And random numbers from 1 to 10 for physical dimensions and 10 to 90 for angles Have the program use 'split' …

Member Avatar for woooee
0
2K
Member Avatar for joshisumitnet

Dear Friends, Please help me out to display a Collage page same link in [url]http://bestuff.com[/url] The images are generated in random size through CSS. I am confused how to display images like in varying size? Please help me out. I am on deadline. I thought lot but could not succeeded. …

Member Avatar for joshisumitnet
0
179
Member Avatar for skorm909

Basically what I'm trying to do is simple. My main problem is the random numbers, but in the comments i have some other issues... if you know how to fix them that would be great the other two main ones im having trouble with are: the do loop until the …

Member Avatar for jonsca
0
143
Member Avatar for wazaa

I have just started using python and am trying to write a program that generates 200 random numbers in the range (1,50),then counts the number of occurrences of each number and prints the frequency of occurrence. I have created the part of the code which generates the random numbers. I …

Member Avatar for wazaa
0
3K
Member Avatar for yup790

Hello I'm trying to make a random number generator to work out probability and chance, although it keeps coming up with an ArrayIndexOutOfBoundsException on line 41(roughly). I would be really greatful if you could help! thx p.s.This is not for school[code]/* * To change this template, choose Tools | Templates …

Member Avatar for leiger
0
175
Member Avatar for skiabox

I am trying to produce a random walk solution but I get some strange results. Here's the code : [CODE] #include <stdio.h> #include <stdbool.h> #include <stdlib.h> #include <time.h> int main (int argc, const char * argv[]) { // insert code here... char myArray[10][10]; char letters[26] = {'A', 'B', 'C', 'D', …

Member Avatar for WaltP
0
144
Member Avatar for ryan400

Here is my code, for some reason it goes to an infinite loop when i try and adjust the highest and lowest values for the Math.Random() method. The code works fine if i do not try to change those values based on if the guess was higher or lower than …

Member Avatar for ryan400
0
1K
Member Avatar for globberbob

Hi there, im new to the site and am hoping someone out there can help me with my question, im pretty newbie in the world of c++ and programming in general. Im making a program with a menu, you can choose between entering a number yourself to be tested as …

Member Avatar for globberbob
0
312
Member Avatar for rcogq7

//This is the error that i have Exception in thread "main" java.lang.NullPointerException //at CardTest.main(CardTest.java:16) /** * @(#)CardTest.java * * * @Robert Coughlin * @version 1.00 2010/10/15 */ //this is the main public class CardTest { public static void main(String [] args) { Card [] randomCard=new Card[20]; for(int i= 0; i<20; …

Member Avatar for kramerd
0
219
Member Avatar for Fulsomenko

Hey guys, new to the forum. So sorry if i am posting this in the wrong location. To my question: I am trying to create a random password generator, and I think it's done is this way. I have made four arrays, two for the alphabet (capital letters and not), …

Member Avatar for peter_budo
0
244
Member Avatar for enja

i have to create a game using c++ language n i want to create something new...so i decide to create a games name "don't forget the lyric" which is the user need to fill in the blank on the lyric given. so, my question is how can i random the …

Member Avatar for enja
0
94
Member Avatar for wikinick

Hi, For a school assignment, I have to make a game of BlackJack using VB2008 Express. I have decided that in the login screen, the user will select his name from a listbox, and then type his password into a text box in order to get to the game screen. …

Member Avatar for Pha
0
112
Member Avatar for totalwar235

currently i am writing a text based RPG but, when i call for the fight my rand() either does not seed each time or it glitches to continuously gets the "Boar". if you could please take a look at it and see if the problem is in the coding, i …

Member Avatar for totalwar235
0
140
Member Avatar for Geli

I want a random timer in pascal, but i have always problem with the number typs. I'm thinking on a machinke what generates a numer between 10 and 60 seconds. Delay in the background, but if time ends writeln The time has ended. What you think is it possible?

Member Avatar for Wolfgan
0
115
Member Avatar for koveras vehcna

Hello everyone, I'm working on a random text generator -without using Markov chains- and currently it works without too many problems. Firstly, here is my code flow: 1-Enter a sentence as input -this is called trigger string, is assigned to a variable- 2-Get longest word in trigger string 3-Search all …

Member Avatar for koveras vehcna
0
164
Member Avatar for nv136

Hello, everyone. I have a small program, and i want that program to show how much RAM the whole system is using, and i want it to show how much R.A.M my program is using, any ideas on how to do that? is it hard?

Member Avatar for nv136
0
136
Member Avatar for Rewired

I am looking for away to Generate Name a from Text Document on Server. Example would be: If I save a text document in the server like at [url]www.example.com/txt/names.txt[/url] How would I be able to generate 1 name at random?

Member Avatar for Rewired
0
177
Member Avatar for kate2mba

Hello all I am very very new to programming & Python. My problem is I cannot figure out how to create a line consisting of random colored pixels. I know how to create a white or red line but how to make the colors random is beyond me. This is …

Member Avatar for Beat_Slayer
0
110
Member Avatar for newbiecoder

Hello I'm trying to get a random float number between two float numbers using rand() function but I couldn't write it by myself, can you show me how to do it? Thanks...

Member Avatar for arkoenig
0
421
Member Avatar for PEye2000

Need help trouble shooting random computer shut down, acts like the power went off, can restart and will start normal, at first it would act as if it overheated I was thinking, There are nothing left in the Event viewer as to any error for the day it does this, …

Member Avatar for oA9999
0
196
Member Avatar for Rickay

I am trying to get the following code to take in either a number or an integer, determine whether what the user inputted is an integer or a letter, and then print a random digit if it is an integer, or a random letter if it is a letter. [CODE]#include …

Member Avatar for jonsca
0
235
Member Avatar for refulez

Hello , Does anyone know a script or a plugin to get random posts in wordpress WITHOUT repeating them. I'm using this theme [url]http://www.osdesigner.net/wordpress-themes/css-gallery-theme/[/url] Thanks a lot Chears!

0
127
Member Avatar for zreed

I need to code a program for my friend and it has been giving me some difficulties. This needs to have two classes, one called Tester and another called Game. And the data in the Game class needs to be pulled to the tester class after the calculations are finished. …

Member Avatar for CrazyDieter
0
197
Member Avatar for kirtan_thakkar

I am using the code as under but always getting 0 value means the same folder [code=php] $random_folder=array("folder1","folder2","folder3"); $folder=$random_folder[rand(0,count($random_folder)-1)]; [/code] Getting folder1 always.. What's wrong?? Please Help.......

Member Avatar for msm_eg
0
157
Member Avatar for poisson

I learned some java in school just 4 weeks ago, so i do not know much things ... so requires your help!! [CODE] String[] alphabetArray = { "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", …

Member Avatar for igonzales
0
117
Member Avatar for kirtan_thakkar

I need a php code that will open and show a random text file(something.txt) in the webpage.I found so many scripts that open a random line in one textfile but i need a code in php that will open a random .txt format file in a specific folder to see …

Member Avatar for kirtan_thakkar
0
178
Member Avatar for nsutton

How can I randomly pick a string element out of a list or array? I'm making a typing aid and I have a method that contains lists of noun/adjectives and verbs. I need it to pick one thing out of each list and turn it into a sentence.

Member Avatar for nsutton
0
743

The End.