How to generate random numbers with the AI-Deck in C?

Discussions about the AI-deck
emiliodc
Beginner
Posts: 3
Joined: Wed Jan 05, 2022 11:23 am

How to generate random numbers with the AI-Deck in C?

Post by emiliodc »

Hello, I would like to generate random numbers on the AI-Deck, and I tried using random() from stdlib.h, but this throws an error at compilation. What should I do?
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: How to generate random numbers with the AI-Deck in C?

Post by kimberly »

Hi!

Somebody had a similar question recently: viewtopic.php?t=5206

You should probably double check if you need to add any external library. Also double check if this question has also been notified on the gap_sdk issue list

Please copy paste the actual compilation error in this thread, and notify which gap8 sdk you are using, as that will help us to help you further.