English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Like the kind you find on www.seventhsanctum.com? I just need a tutorial and a sample code, and I don't intend on putting what I make online. In other words, I want to make one for my own personal use.

2006-11-06 08:39:22 · 1 answers · asked by rokkon 3 in Computers & Internet Programming & Design

1 answers

I don't know what languages you know and I don't know what language you want to write in.

Several programming languages have a pseudo random function that generates a number between 0 and 1.
Multiply this number by time in seconds as a decimal to make the number more random. Now multiply this number by the maximum random number you would like and add 1.
You now need an integer function to get the integer of the result.
Use this number to access an array of whatevers that you would like to display randomly.

Please note:
whatevers is a technical term for pseudo objects.

2006-11-06 09:43:33 · answer #1 · answered by AnalProgrammer 7 · 0 0

fedest.com, questions and answers