Playing with FFT

Hi, peter, thank you for linking me to your post. (http://forum.arduino.cc/index.php?topic=175679.15)

I still don't understand why the way I generate sine wave data is not correct.
Can you explain how you generate useful data to test fft please?

I was using "k = 127sin(23.14 * 100 * t )" to generate the data, 100 = wave frequency, but someone asked me what my simulated sampling frequency is, I have no idea what it is, or how to set it.
I wanted to simulate it as if I'm take the data out of A0 from an oscilloscope at a sampling rate of 38.5 khz . I don't have access to an socilloscope right now, but even if I do, I think it's better to simulate it with pure data first.

Thank you