Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / Small random() help need

Author
Message
TamBam
12
Years of Service
User Offline
Joined: 29th Nov 2011
Location: India
Posted: 16th Oct 2021 13:37
suppose I use random(1,3) . 1st time = 2 | 2nd comes =2 | 3rd time = 1| 4th time = 3 | 5th time =1 now if I close my app and start again those result repeat on same sequence . any solve ?
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
TamBam
12
Years of Service
User Offline
Joined: 29th Nov 2011
Location: India
Posted: 16th Oct 2021 14:49
Thank you. I remember 'randomseed ' but forget 'set' anyways before I never use this. I chk and replay you soon.
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 16th Oct 2021 19:10
That was a random question


Open Source plugins
Cl - DnD Plugin
Buy Me A Coffee
TamBam
12
Years of Service
User Offline
Joined: 29th Nov 2011
Location: India
Posted: 16th Oct 2021 22:05 Edited at: 16th Oct 2021 22:15
@Virtual Nomad Thankyou working perfect. 1 request can you share code "TableRunner" 04.10.20. I want study the physics part. If possible.
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 16th Oct 2021 23:43
i already shared the basics with you when i wrote the carrom example that you requested...

Login to post a reply

Server time is: 2024-04-25 07:54:06
Your offset time is: 2024-04-25 07:54:06