>i'm having problems with the number() function. I cannot figure out how to make it generate a random number each time it is called. snip. Not 100% sure as to exactly what "outside" function you are hoping to call and or have created, however.. Try using rand(). >i am making a small rpg in win32 API, and i have a button that rerolls your stats, but every time you press it. snip. It's been awhile since I worked on the windows side of things, anyhow, dependant upon the programming language you are using you will have to assign a statement that randomly generates new data each time your random related procedure/function is called. For example I would use: RANDOMIZE, as a part of a visual basic project and use 'rnd' as my means of generating the random data.. Without RANDOMIZE the data would remain the same despite how many clicks one was to use. I suggest looking up the documentation in reference to the programming language you are using and or try a search engine in regards to a specific command that will assist you in generating random data in your programming environment. All the best, Bill Zaparanuik -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | | Newbie List: http://groups.yahoo.com/group/circle-newbies/ | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/25/03 PDT